【问题标题】:Can any one let me know how to override Tab open method谁能让我知道如何覆盖 Tab open 方法
【发布时间】:2017-04-06 06:19:40
【问题描述】:

打开标签时 Ti.Ui.Tab.open(win); 想做一些工作。我试过这样 tabcomponent.open = function(win){ // Code goes here };

但没有奏效。谁能告诉我如何重写一个方法。

提前致谢,

斯瓦蒂。

【问题讨论】:

    标签: titanium appcelerator titanium-mobile appcelerator-titanium appcelerator-mobile


    【解决方案1】:

    您不能覆盖默认函数。使用与默认函数名称不同的自定义函数扩展您的选项卡组件。

    tabcomponent.openTab = function(win){
         // Code goes here
     };
    

    【讨论】:

      猜你喜欢
      • 2016-12-04
      • 2010-12-14
      • 2016-10-03
      • 1970-01-01
      • 1970-01-01
      • 2019-01-25
      • 1970-01-01
      • 2021-10-27
      • 1970-01-01
      相关资源
      最近更新 更多