ICANUI-DIV的页面切换

一、模板按钮绑定切换按钮(事件->点击: this.switch_page() )

二、js定义switch_page函数

switchPage(){
    this.show("page1"); //跳转的页面显示
    this.hide("index");  //当前页面隐藏
    //里面参数为页面 id号
}

猜你喜欢

转载自www.cnblogs.com/mingliangge/p/13185275.html