如何在Intel XDK中使用App Framework面板加载

时间:2015-12-02 14:04:48

标签: intel-xdk appframework

我尝试使用panelload,但它不会在我的应用中触发,这是我的代码,任何人都可以帮忙吗?



    $(document).on("loadpanel","#uib_page_1", function(evt){
        alert("Test");
    });

    <div class="upage vertical-col left view" id="mainpage" data-header="none" data-footer="none">
      <div class="pages">
        <div class="upage-content vertical-col left panel ac0" id="uib_page_1">
...
          </div>
    </div>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

这适用于appFramework 3.0:

   $(document).on("panelload","#uib_page_1", function(){
        console.log("Test");
    });