function create(){ // 新建一个对象 let obj = new Object(); // 取出构造函数 let con = [].shift.call(arguments); // 链接prototype obj.__proto__ = con.prototype; // 执行构造函数 let ret = con.apply(obj, arguments); return ret instanceof Object ? ret : obj}