xiejiaheng
Results
2
comments of
xiejiaheng
定位 ` .parent{ position: relative; } .child{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } `
1. 创建了一个新对象 2. 链接到原型 3. 绑定this指向 4.返回这个对象 ```js function _new() { let obj = {} let Con = [].shift.call(arguments) obj.__proto__ = Con.prototype let result = Con.apply(obj, arguments) return typeof obj...