解决方案 »

  1.   

    应该是JQUERY MOBILE  做了相应的处理所以,你可以尝试在处理之前把属性值改掉,达到阻止的目的,可以参考如下代码<!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>测试标题</title>
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
    <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
    <script>
    $(function(){
    $(":jqmData(role='page')").attr("data-title", document.title);
    })
    </script>
    <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
    </script>
    </head>
    <body><div data-role="page" id="pageone">
      <div data-role="header">
        <h1>在此处插入标题</h1>
      </div>  <div data-role="content">
        <p>在此处插入正文</p>
      </div>  <div data-role="footer">
        <h1>在此处插入页脚文本</h1>
      </div>
    </div> </body>
    </html>