What is the use of the JavaScript 'bind' method?

后端 未结 19 1937
自闭症患者
自闭症患者 2020-11-21 06:24

What is the use of bind() in JavaScript?

19条回答
  •  灰色年华
    2020-11-21 06:49

    In addition to what have been said, the bind() method allows an object to borrow a method from another object without making a copy of that method. This is known as function borrowing in JavaScript.

提交回复
热议问题