Skip to content

5.2属性描述对象的9.6 #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lanaiscoding opened this issue Jun 14, 2022 · 1 comment
Closed

5.2属性描述对象的9.6 #248

lanaiscoding opened this issue Jun 14, 2022 · 1 comment

Comments

@lanaiscoding
Copy link

var obj = {
p: 'hello'
};

Object.freeze(obj); (这句应该去掉,不然就返回undefined了)

if (!Object.isFrozen(obj)) {
obj.p = 'world';
}

@ruanyf
Copy link
Contributor

ruanyf commented Jun 15, 2022

这里是演示函数用法,不需要去掉。

@ruanyf ruanyf closed this as completed Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants