码磊姐姐
雄关漫道真如铁,而今迈步从头越。
摘要: 今天无事手写一个bind函数 //重写bind函数 Function.prototype.bindDemo = function(){ // arguments可以获取到传的参数 // 1.先把获取到的数据转换为数组的格式 let args = Array.prototype.slice.call( 阅读全文
posted @ 2024-04-26 17:49 码磊姐姐 阅读(11) 评论(0) 推荐(0) 编辑