标签:prototype prot new argument cti obj UNC apply func
function mynew(fn) {
return function() {
let obj = {
__proto__:fn.prototype
}
fn.apply(obj,arguments)
return obj
}
}
标签:prototype prot new argument cti obj UNC apply func
原文地址:https://www.cnblogs.com/liuhp/p/12218737.html