首页 > 试题广场 >

执行以下程序,输出结果为() const target =

[单选题]

执行以下程序,输出结果为()

const target = {
  m: function () {
    console.log(this === proxy);
  }

};
const proxy = new Proxy(target, {});
target.m();
proxy.m();

  • true false
  • false true
  • true true
  • false false
今天在用vue的reactive时,把我对象函数的指向改了,关键有些变量是私有属性所以没复制过去,bug就这样出现了
发表于 2025-11-04 20:05:50 回复(0)