Heim  >  Artikel  >  Backend-Entwicklung  >  javascript-php页面js css刷新才加载,如何解决?

javascript-php页面js css刷新才加载,如何解决?

WBOY
WBOYOriginal
2016-06-02 11:29:10874Durchsuche

phpjavascriptjquerycss

这是A页面

<code>    <title>选择类别</title>    <meta name="viewport" content="width=device-width, initial-scale=1">      <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">     <link rel="stylesheet" href="index.css">    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>    <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>    <script src="index.js"></script>    <a href="Calorie.php?type=1" data-ajax="“false”"><img  src="img/type1.png" alt="javascript-php页面js css刷新才加载,如何解决?" ></a>    <a href="Calorie.php?type=2" data-ajax="“false”"><img  src="img/type2.png" alt="javascript-php页面js css刷新才加载,如何解决?" ></a>    <a href="Calorie.php?type=3" data-ajax="“false”"><img  src="img/type3.png" alt="javascript-php页面js css刷新才加载,如何解决?" ></a>    </code>

跳转到Calorie.php后js和css都没有加载
用chrome调试后发现加载的是前一个页面的head,如下图
图片说明
实际页面的head如下图
图片说明

刷新后才加载。求解决啊

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn