jQuery events .load(), .ready(), .unload()

前端 未结 4 685
情深已故
情深已故 2020-11-28 20:26

Just a simple question, for the jQuery event. Are the .load(), .ready() and .unload() run in order when the DOM is loaded? The answer seems yes when I see the jQuery Documen

4条回答
  •  悲&欢浪女
    2020-11-28 21:15

    Also, I noticed one more difference between .load and .ready. I am opening a child window and I am performing some work when child window opens. .load is called only first time when I open the window and if I don't close the window then .load will not be called again. however, .ready is called every time irrespective of close the child window or not.

提交回复
热议问题