JavaScript - 새 페이지 건너뛰기

5018 단어 H5+
HTML index.html
<body>
    <div class="mui-content">
        <div style="text-align: center;">
            <ul class="mui-table-view">
                <li id="log" class="mui-table-view-cell mui-collapse" style="font-size: 30px">1123li>
            ul>
        div>
    div>
     <script src="js/login.js">script>
body>

js
(function ($, doc) {
            console.log("++++++++++lsdjflsdjflsdf");
            var l=doc.getElementById('log');
            l.addEventListener('tap',function(event){
                console.log("++++++++++lsdjflsdjflsdf");
                $.openWindow({ url: 'login.html',//  id: 'login', preload: true, show: { aniShow: 'pop-in' }, styles: { popGesture: 'hide' }, waiting: { autoShow: false } });
                    },false);
                    // , , 
                    var backButtonPress = 0;
                    $.back = function(event) {
                        backButtonPress++;
                        if (backButtonPress > 1) {
                            plus.runtime.quit();
                        } else {
                            plus.nativeUI.toast(' ');
                        }
                        setTimeout(function() { backButtonPress = 0; }, 1000);
                        return false;
                    };
        }(mui, document));
mui.openWindow({
                id:'dg_qxdj_index.html'
                })
 

좋은 웹페이지 즐겨찾기