what does “return this.each()” do in jQuery?

后端 未结 5 988
轮回少年
轮回少年 2021-02-08 21:25

I\'m looking at a jQuery plugin, which has a single function. After setting up the appropriate defaults though a constructor argument the function defines a couple of helper fu

5条回答
  •  天涯浪人
    2021-02-08 21:58

    It makes functions chainable

    http://docs.jquery.com/Plugins/Authoring#Maintaining_Chainability

提交回复
热议问题