Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到一些奇怪的行为创建了一个图像预加载器,我想我现在想知道 load 事件是否有可能在它附加到 DOM 之前触发。
能不能在这里开火
var myImg = $('<img>', {src:myImgSrc});
在我之前,
$(body).append(myImg);
?