For some problems in changing the three methods that this points to in JavaScript, bind, apply, and call

CSDN Q & A 2022-06-24 10:03:46 阅读数:522

problemschangingmethodspointsjavascript

img

img

As shown in the figure code
Add... Before passing in a function ~ And declare a variable return Will return a -1, Declare a variable and return It will return a -1- Parameters
Add... Before passing in a function ! And declare a variable return Will return a false, If you put return Comments will return a true
Similarly, if the front becomes + perhaps - Will return to NaN
This is what I found while learning and trying , I hope I can help solve

版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://primo.wiki/2022/175/202206171559428677.html