手写call函数
1 | Function.prototype.myCall = function (context,...args) { |
手写apply函数
1 | Function.prototype.myBind=function(obj,...args){ |
1 | Function.prototype.myCall = function (context,...args) { |
1 | Function.prototype.myBind=function(obj,...args){ |
react demo
1.数据类型