//var obj = Object.preventExtensions({});
var obj = {
};
var p = new Proxy(obj, {
getPrototypeOf(target) {
return {
};
}
});
Object.getPrototypeOf(p); // TypeError: expected same prototype value
console.log(Object.getPrototypeOf(p))
object是从哪里来的
不是很值得这是在干啥,获取p属性的类型?
猜你喜欢
转载自blog.csdn.net/weixin_40945354/article/details/120129746
今日推荐
周排行