0
点赞
收藏
分享

微信扫一扫

页面返回按钮


 data-add-back-btn="true"

  data-add-back-btn-text设置返回按钮的值

$.mobile.page.prototype.options.backBtnText="后退",进行全局设置

<div data-role="page" id="w1" data-add-back-btn="true">
  <div data-role="header"><h1>今天天气</h1></div>
  <div data-role="content">
       <p>4~-7℃<br />晴转多云<br />微风</p>
  </div>
  <div data-role="footer"><h4>©2012 rttop.cn studio</h4></div>
 </div>



<div data-role="page" id="e3" data-add-back-btn="true" 
      data-back-btn-text="首页">
   <div data-role="header">
	  <h1>后退按钮文字</h1>
    </div>
  <div data-role="content">
    <p><a href="#e1">首页</a></p>
  </div>
  <div data-role="footer"><h4>©2012 rttop.cn studio</h4></div>
 </div>


data-rel="back"可以作为返回并且href不起作用

<p><a href="http://www.rttop.cn" direction="reverse" data-rel="back">返回首页</a></p>

 

 

 

举报

相关推荐

0 条评论