mui 固定头部,加载子页

来源:互联网 发布:淘宝开店注意事项 编辑:程序博客网 时间:2024/04/30 04:03
<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/

0 0