AppCan add back button icons and events page

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/u011033906/article/details/91410618
<body class="um-vp " ontouchstart>
        <div id="page_0" class="up ub ub-ver bc-bg" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh bc-text-head ub bc-head">
                <div class="nav-btn" id="nav-left">
                    <div class="fa fa-angle-left fa-2x"></div>
                </div>
 
 
            </div>
            <!--header结束-->
        </div>
        <script src="js/appcan.js"></script>
        <script src="js/appcan.control.js"></script>
</body>

Here Insert Picture Description

Click on the arrow to return event, the code can be placed JS/appcan.control.jsin:

appcan.button(".nav-btn", "btn-act", function() {
            appcan.window.close(-1);
})

In the current html page, must be imported

<script src="js/appcan.js"></script>
<script src="js/appcan.control.js"></script>

Guess you like

Origin blog.csdn.net/u011033906/article/details/91410618