复制1const user = { 2 email: "my@email.com", 3 updateEmail: email => { 4 this.email = email 5 } 6} 7 8user.updateEmail("new@email.com") 9console.log(user.email)
1const user = { 2 email: "my@email.com", 3 updateEmail: email => { 4 this.email = email 5 } 6} 7 8user.updateEmail("new@email.com") 9console.log(user.email)
本题为“单选题”
题库维护不易,您的支持就是我们最大的动力!