美文网首页Front End
[jQuery Mobile] jQueryMobile单htm

[jQuery Mobile] jQueryMobile单htm

作者: 何幻 | 来源:发表于2016-03-03 07:13 被阅读35次
<body>
<div id=page1 data-role=page>       
    <div data-role=content>
        <a href="#page2">跳转到第二页</a>
    </div>
</div>

<div id=page2 data-role=page>       
    <div data-role=content>
        <a data-rel=back>回到上一页</a>
    </div>
</div>
</body>

注:
(1)跳转链接href属性要填写跳转page的id属性
(2)要使用$('超链接id').click();来模拟超链接点击,而使用$('超链接id')[0].click();点击,在android的微信浏览器中将不能跳转。

相关文章

网友评论

    本文标题:[jQuery Mobile] jQueryMobile单htm

    本文链接:https://www.haomeiwen.com/subject/xspnkttx.html