phpjavascriptjquerycss
这是a页面
<code><!DOCTYPE html><html><head> <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></head><body class="index-page"> <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> </body></html></code>
跳转到Calorie.php后js和css都没有加载
用chrome调试后发现加载的是前一个页面的head,如下图
实际页面的head如下图
刷新后才加载。求解决啊
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号