Before the class syntax was available, if you wanted to do OOP you would need to use a constructor function. function Dog (name) { this.name ...
確定! 回上一頁