首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
zf-6-es6 (3天)
zf-6-es6 (3天)
mac
2025-03-07
14
Reflect
// 反射 Object.defineProperty
// 里面有部分的对象的方法 放到 Reflect 功能基本一致
// Proxy 中能代理的方法 Reflect 都可以实现
// 1) get /set
const
obj
=
{
}
;
Reflect
.
set
(
obj
,
'name'
,
'zf'
)
;
// obj.name = zf;
console
转载请注明原文地址: https://mac.8miu.com/read-500931.html
最新回复
(
0
)