JQUERY MOBILE header标签里面的<h1>XXX</h1> 总是自动修改标题 jquery mobile 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 应该是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> ext.FormPanel.load 为什么总是failure 关于'这个符号。在两个页面之间传递时,不能显示该字符,请fosjos 帮忙看看 谁有下拉菜单的代码..谢谢!! 【菜鸟求助】为什么不能传递变量? 不用view-source: 如何得到一个网页的源码 鼠标放到下拉框显示注释的问题 怎么写交换数组元素的函数呀? 如何记录一个图片被点击 的次数? 请问,提交表单后如何自动关闭网页。 Unable to compile class for JSP问题 text 中怎么把选中的文字换掉? 用JS可以实现右键菜单上的“目标另存为”这个功能吗?????????
<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>