📄 harvester.js
字号:
//=====================================================================================//===//=== Harvester//===//=====================================================================================function Harvester(){ var currId = null; //=====================================================================================//===//=== API methods//===//=====================================================================================//--- abstract methodsthis.getType = function() {}this.getLabel = function() {}this.getEditPanel = function() {}this.getResultTip = function() {}//=====================================================================================this.init = function() { this.view.init(); }//=====================================================================================this.setData = function(node) { currId = node.getAttribute('id'); this.view.setData(node); }//=====================================================================================this.setEmpty = function(){ currId = ""; this.view.setEmpty(); }//=====================================================================================this.getUpdateRequest = function(){ if (!this.view.isDataValid()) return null; var data = this.view.getData(); data.ID = currId; data.TYPE = this.getType(); return this.model.getUpdateRequest(data);}//=====================================================================================}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -