Vue3 将所有内容打印为“代理”对象。
我知道该值在 [[Target]] 内,但我不想每次都继续扩展 Proxy->[[Target]] 。只是想澄清一下,这根本不会改变输出。这只是一种“更干净”的看待事物的方式。
一个例子:
const b = 'value'
console.log(value)
Output -> { Proxy: { [[Handler]]: ..., [[Target]]: 'value', [[IsRevoked]]: false }
好的,这有效。
console.log(JSON.parse(JSON.stringify(b))).
了解更多信息。 访问 Vue3 中的 Proxy 对象
| 归档时间: | 
 | 
| 查看次数: | 16806 次 | 
| 最近记录: |