jQuery document.ready vs pageLoad

后端 未结 6 1704
陌清茗
陌清茗 2021-02-02 11:56

I\'ve picked up an existing project from another developer and ive noticed in the code that they are executing js code within three different event handlers...

f         


        
6条回答
  •  不知归路
    2021-02-02 12:16

    pageLoad and the jQuery ready handler are both methods of accomplishing similar things.

    The second two examples are identical.

    http://encosia.com/document-ready-and-pageload-are-not-the-same/

提交回复
热议问题