开发者

MooTools: domready vs load

With which w开发者_如何学Pythonill function(){} fire first?

A) window.addEvent('domready', function(){});
B) window.addEvent('load', function(){});


domready will fire first.

http://demos111.mootools.net/DomReadyVS.Load


domready comes first as load waits till everything on the page is loaded before executing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜