摘要: function _create() { //小新(new)闯(创)祸(获)被铁链捆绑遣返 let obj = {};//1.创建一个空对象 创 let constructor = [].shift.call(arguments);//2.获取构造函数 获 obj.__proto__ = const 阅读全文
posted @ 2022-10-30 19:27 我喝牛奶不舔盖 阅读(70) 评论(0) 推荐(0)
摘要: Function.prototype.myBind = function (context) { // if(!(typeof this == 'function')) { //1.判断调用者是否为一个函数 判 throw new Error('调用者必须是一个函数') } let self = t 阅读全文
posted @ 2022-10-30 00:23 我喝牛奶不舔盖 阅读(76) 评论(0) 推荐(0)
I hear and I forget. I see and I remember. I do and I understand