在云缩放js文件中我发现了一个奇怪的符号
$mouseTrap = jWin.parent().append(format("<div class='mousetrap' style='background-image:url(\".\");z-index:999;position:absolute;width:%0px;height:%1px;left:%2px;top:%3px;\'></div>", sImg.outerWidth(), sImg.outerHeight(), 0, 0)).find(':last');
有人可以为我解释一下。最具体的是“宽度:%0px”?%0px 是什么意思
最佳答案
这看起来像是模板的占位符。
似乎这个占位符 %0, %1, %2, %3
将被值替换为值 sImg.outerWidth(), sImg.outerHeight(), 0, 0
。
关于javascript - 有人知道云放大的特殊签到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17842119/