jQuery document.ready vs pageLoad

后端 未结 6 1702
陌清茗
陌清茗 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:41

    The last one is just a shorthand notation of the one above it. http://www.jquery4u.com/dom-modification/types-document-ready/

提交回复
热议问题