JS面向對象思想(OOP)

直接看js好了,模擬創建一個奧運會 function 奧運會Class(主題) {    // 刪除主題    // delete  this.主題;     this.主題 = 主題;     this.開幕時間;     this.閉幕時間;     this.公告簿 = "";     //模擬開幕     this.開幕 = function () {         this.開幕時間
相關文章
相關標籤/搜索