0
雖然打開標籤 Ti.Ui.Tab.open(win);
想做一些工作。我已經嘗試過這樣的 tabcomponent.open = function(win){ // Code goes here };
任何一個可以讓我知道如何覆蓋Tab打開方法
但沒有工作。任何人都可以讓我知道如何重寫一個方法。
在此先感謝,
Swathi。
雖然打開標籤 Ti.Ui.Tab.open(win);
想做一些工作。我已經嘗試過這樣的 tabcomponent.open = function(win){ // Code goes here };
任何一個可以讓我知道如何覆蓋Tab打開方法
但沒有工作。任何人都可以讓我知道如何重寫一個方法。
在此先感謝,
Swathi。
您不能覆蓋默認功能。使用與默認函數名稱不同的自定義函數擴展tabcomponent。
tabcomponent.openTab = function(win){
// Code goes here
};