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.
我遇到了我认为与文档(在框架内)尚未完全准备好相关的问题,并且想知道使用 jQuery 1.3.2 测试“就绪”的最佳实践是什么——版本我正在使用的特定插件所需的。
另外,测试应该在设置框架集的文档中还是在框架集加载的文档中进行?
如果您只需要等待图像加载,您可以只使用图像的onload事件处理程序吗?
onload
var imgMap = new Image(); .... imgMap.onload = function() { ... }