开发者

$(window).load() inside function

开发者 https://www.devze.com 2023-01-15 11:53 出处:网络
There are many dimensional functions, inside one of them we need to use onload event (do something when开发者_运维问答 page is loaded).

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?

0

精彩评论

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