开发者

Is this.init = function() called every time file is loaded?

开发者 https://www.devze.com 2023-04-07 05:08 出处:网络
I can\'t find a definitive answer if an init function is called automatically when the file is loaded. Is this a built-in part of JS/Jquery, or am I missing where it\'s getting called from in some loc

I can't find a definitive answer if an init function is called automatically when the file is loaded. Is this a built-in part of JS/Jquery, or am I missing where it's getting called from in some location of another file?

If it is b开发者_运维问答eing called automatically, is this reoccurring every time the file is loaded?

Example of the particular setup:

ExampleClass = function()
{
   this.init = function()
   {
          //...
   }
}


no init is not called automatically when file is loaded.


Something else is calling it, that is not a behavior of javascript.


Init is called when DOM is ready, not called default or automatically when file is loaded.

Please see below link for more understanding.You will definitely like it.

Click me

0

精彩评论

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

关注公众号