Is this.init = function() called every time file is loaded?
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
精彩评论