js 手寫 call apply bind

call let obj = { name: 'xxx' } function sayName(prev) { console.log(prev, this.name) } Function.prototype.myCall = function (context) { context = context || window; let args = [...ar
相關文章
相關標籤/搜索