Jquery mobile 在一个页面上包含jQuery Mobile会影响所有页面吗?

Jquery mobile 在一个页面上包含jQuery Mobile会影响所有页面吗?,jquery-mobile,Jquery Mobile,我在index.html中包含了标准jQuery Mobile CDN文件,它将css应用于我的所有页面。我不明白这是怎么发生的。有人能解释一下吗?有没有办法阻止它 <head> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />

我在index.html中包含了标准jQuery Mobile CDN文件,它将css应用于我的所有页面。我不明白这是怎么发生的。有人能解释一下吗?有没有办法阻止它

<head>
  <title></title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
      <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
      <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>

  </head>

我可以解释

使用jQuery Mobile链接页面时,它不会直接链接到新页面。为了使JQM能够使用其奇特的页面转换,它会预加载页面,然后用新内容交换旧内容。因此,JQM永远不会重新加载文档的


如果要覆盖此行为,请将
rel=“external”
放在锚定标记中。这告诉JQM它正在链接到一个外部站点,而不是一个JQM页面。

将您的
代码放在这里。这里有简单的includes。我想知道当我们使用
$.mobile.changePage()
时,您如何嵌入这个
rel=“external”
,您将无法进行转换。如果要以编程方式更改页面,则必须使用
window.location.href=newpage