mui 固定头部,加载子页
<script> mui.init({ swipeBack: false, subpages: [{ id: "qrcode_body", url: "qrcode_body.html", styles: { top: "50px", bottom: 0, bounce: "vertical" }, extras: { plid: $("#hdplid").val() } //额外扩展参数 }] }); </script>
经测试,init方法比ready早执行,所以,如果传递参数,下一个页面只会取到空值,也许有方法能解决,目前不知道。
此方法直接写入页面
转自:http://ask.dcloud.net.cn/explore/
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。