在JavaScript中仍然是使用prototypal inheritance的方法。 class的這種做法在JavaScript實際上只是syntax sugar,也就是說,它只是用來建立物件和原型的 ...
確定! 回上一頁