let user = { get name() { return 'mary'; }, set name(value) { this.name = value //这句话报错了 }};user.name = "Peter"; //尝试赋值的时候报错Uncaught RangeError: Maximum call stack size exceededconsole.log(user.name);
添加回答
举报
0/150
提交
取消