客户端页面不更新CSS样式或JS脚本的方法 (2018-08-17 17:33)
js或css后加?v= 版本号的用法
<span style="font-size:14px;">css和js带参数(形如.css?v=与.js?v= 或 .css?version=与.js?version= )
<script type=”text/javascript” src=”jb51.js?version=1.2.6″></script>
<link rel=’stylesheet’ href=’base.css?version=2.3.3′ type=’text/css’ />
上面代码对于文件来说等价于:
<script type=”text/javascript” src=”jb51.js”></script>
<link rel=’stylesheet’ href=’base.css’ type=’text/css’ />