var name = {}; Object.defineProperties(name, { firstName: { value: 'z', writable: true }, lastName: { value: 'daoyang', writale: true } });而把name换成其他字母,比如name1就没问题,请问这是为什么 var name1 = {}; Object.defineProperties(name1, { firstName: { value: 'z', writable: true }, lastName: { value: 'daoyang', writale: true } });为什么name不能作为对象名???
添加回答
举报
0/150
提交
取消