jQuery prototype and constructor function chaining

后端 未结 2 1543
暗喜
暗喜 2021-02-15 11:29

How would jQuery allow its constructor to act as a function accepting arguments meanwhile its constructor also acts as a function accepting arguments?

I am a bit new to

2条回答
  •  我在风中等你
    2021-02-15 12:01

    It's a programming technique called function chaining.

    You can see more on this here: How does basic object/function chaining work in javascript?

提交回复
热议问题