Home  >  Article  >  Web Front-end  >  加随机数引入脚本不让浏览器读取缓存_javascript技巧

加随机数引入脚本不让浏览器读取缓存_javascript技巧

WBOY
WBOYOriginal
2016-05-16 16:37:311362browse
<script type="text/javascript"> 
   //为了兼容高版本chrome浏览器,此处不能读取缓存,故采用家随机数方式引入脚本 
   document.write("<s" + "cript type='text/javascript' src='../../Scripts/KindEditor/Editor/kindeditor-min.js&#63;" + Math.random() + "'></s" + "cript>"); 
</script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn