前端给js和css加上时间戳,清除缓存,做版本控制

1.<script type="text/javascript" src="../resources/js/pcWeb/index.js">

2.<script type="text/javascript" src="../resources/js/pcWeb/index.js?1547027721120"></script>


代码如上
2是加入时间戳的js引入,怎么批量给项目html中引入的js和css加入版本控制

猜你喜欢

转载自www.cnblogs.com/wendy-zy/p/10254302.html