如果要建構新物件,傳統的Prototype-based的寫法會需要:. 定義constructor; 在 prototype 物件上定義方法. function User(name) ...
確定! 回上一頁