我正在使用从我使用Jquery Mobile
的页面到我不使用的页面的链接。由于某种原因,Jquery Mobile
样式持续存在于我链接到UNTIL
的页面上,我刷新页面,在这种情况下,页面正确加载。我对可能导致这个问题的原因感到非常困惑,我在Firefox和Chrome上都进行了测试。我试过禁用缓存,但没有成功。
有人知道是什么原因导致的吗?
提前感谢。
hello_world.php:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
</head>
<body>
<a href="create2.php" data-icon="plus" class="ui-btn-left">Create</a>
</body>
</html>
create2.php:
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<form>
Title: <input type="text" name="title" value="">
submit: <input type="submit" value="submit">
</form>
</body>
</html>
参考此页来了解jquerymobile的链接是如何工作的
将此属性设置为锚定rel="external", data-ajax="false"
指向其他域或rel="external"的链接,data-ajax="false"否则目标属性将不会被Ajax加载
默认链接行为:Ajax
要启用动画页面过渡,所有指向外部页面(例如products.html)将通过Ajax加载。要做到这一点框架会不引人注目地解析链接的href以形成一个Ajax请求(Hijax)并显示加载微调器。这就是jQuery Mobile.