$(window).load() inside function
There are many dimensional functions, inside one of them we need to use onload event (do something when开发者_运维问答 page is loaded).
The problem is the code inside $(window).load(function(){});
doesn't work. But it works outside the function.
Whats the problem?
The event which triggers that function has already passed when the function containing the event listener gets executed?
精彩评论