Monday, October 12, 2020

架構遇到問題

 code 寫死就會造成 延展性不佳

        case KeyEvent.DOM_VK_CC:

        case KeyEvent.DOM_VK_SUBTITLE:

            var subObj = this.curData.value[this.selected];

            if (this.subtitle_cc_show == false && this.selected == 0 && (typeof(subObj) == 'object' && (Array.isArray(subObj.value) || subObj.hasOwnProperty('showMode')))) {

                this.curData.focusIndex = this.selected;

                this._list_submenu_init(subObj);

                this.subtitle_cc_show = true;

                return false;

No comments:

Post a Comment

n8n index

 【n8n免費本地端部署】Windows版|程式安裝x指令大補帖  【一鍵安裝 n8n】圖文教學,獲得無限額度自動化工具&限時免費升級企業版功能