09 2022 档案

摘要:js基础 new源码 ​ 将新创建出来的函数的Prototype 改成传入进来的函数 function createObject(o){ function Fn(){} Fn.prototype = o return new Fn() } 改变创建出来对象的this,使用apply或者call方法 阅读全文
posted @ 2022-09-22 10:22 uoue 阅读(99) 评论(0) 推荐(0)