摘要: 1call()方法 方法重用 使用 call() 方法,您可以编写能够在不同对象上使用的方法。 //在Function原型上绑定全局自定义mycall方法Function.prototype.mycall = function (obj) { const newthis = obj || this; 阅读全文
posted @ 2022-07-06 16:27 lijun12138 阅读(178) 评论(0) 推荐(0)