t***@126.com
t***@126.com
  • 发布:2018-08-08 15:31
  • 更新:2018-08-08 15:31
  • 阅读:1612

HBuild 更新后 mui-bar mui-bar-tab点击切换页面无反应

分类:HBuilder
mui.init(  
                {  
                    subpages : [  
                        {  
                            url : "main_system.html",  
                            id  : "main_system",  
                            styles :{  
                                top : "0px",  
                                bottom:"51px",  
                                width:"100%"  
                            }  
                        },  
                        {  
                            url : "kpi_index.html",  
                            id  : "kpi_index",  
                            styles :{  
                                left : "100%",  
                                top : "0px",  
                                bottom:"51px",  
                                width:"100%"  
                            }  
                        },  
                        {  
                            url : "my_home.html",  
                            id  : "my_home",  
                            styles :{  
                                left : "100%",  
                                top : "0px",  
                                bottom:"51px",  
                                width:"100%"  
                            }  
                        }  
                    ]  
                }  

            );  
mui.plusReady(function(){  
                _self = plus.webview.currentWebview();  

                var mt1 = document.getElementById("mt1")  
                var mt2 = document.getElementById("mt2")  
                var mt3 = document.getElementById("mt3")  

                mt1.addEventListener("tap",function(){  
                    changeSubs(1);  
                })  
                mt2.addEventListener("tap",function(){  
                    changeSubs(2);  
                })  
                mt3.addEventListener("tap",function(){  
                    changeSubs(3);  
                })  
                ifLogin();  
            })
2018-08-08 15:31 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复