84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
let methodName = 'getArea'; class Square{ constructor(length){ //.. } [methodName](){ //.. } }
在《ES6标准入门》中,18章讲到:
类的属性名可以采用表达式。
看不明白[]在这里的用途?
[]
我知道的[]的用途:
声明数组
取数组成员
定义对象成员
取对象成员
这四个用途都跟上面代码中的[]用法不沾边呀(o´・ェ・`o)
学习是最好的投资!
给你个链接 记得别采纳我。前几天有一样的问题。
在 vuex中涉及的es6语法的小疑惑 中 @Dont 和我都已经回答过了。 @toBeTheLight 也搬过来了,我就是来回个邀请 ◔‸◔
表示这是一个变量啊。
其中的用途可以是这样..等等
给你个链接 记得别采纳我。前几天有一样的问题。
在 vuex中涉及的es6语法的小疑惑 中 @Dont 和我都已经回答过了。 @toBeTheLight 也搬过来了,我就是来回个邀请 ◔‸◔
表示这是一个变量啊。
其中的用途可以是这样..等等