Home > Web Front-end > JS Tutorial > Add random numbers to introduce scripts to prevent the browser from reading the cache_javascript skills

Add random numbers to introduce scripts to prevent the browser from reading the cache_javascript skills

WBOY
Release: 2016-05-16 16:37:31
Original
1434 people have browsed it
<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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template