SoFunction
Updated on 2025-04-12

Adding random numbers to introduce scripts to prevent browsers from reading cache

Adding random numbers to introduce scripts to prevent browsers from reading cache

Updated: September 4, 2014 10:38:46 Submission: whsnow
The browser does not allow the cache to be read, so the home random number method is used to introduce scripts. This method is suitable for refreshing the cache in a timely manner.
<script type="text/javascript"> 
   //In order to be compatible with higher versions of chrome browsers, cache cannot be read here, so the script is introduced using the home random number method   ("<s" + "cript type='text/javascript' src='../../Scripts/KindEditor/Editor/?" + () + "'></s" + "cript>"); 
</script>
  • Random number
  • Introduce scripts
  • cache

Related Articles

  • js left,right,mid function

    In JAVASCRIPT, the equivalent functions of LEFT, RIGHT, and MID functions are very suitable for friends who often write asp
    2008-06-06
  • Lights and shadows of objects in the middle

    This article mainly introduces the lighting and shadow settings of objects in the article. The example code is introduced in very detailed, which has certain reference learning value for everyone's study or work. Friends who need it, please learn with the editor below.
    2023-07-07
  • JS implements the banner toolbar code on top of Alibaba Mama website with shutdown function

    This article mainly introduces the JS implementation of the banner toolbar code on the top of the Alibaba Mama website with a closing function, which can realize the floating display and closing hidden functions of the top banner window. It has certain reference value. Friends who need it can refer to it.
    2015-09-09
  • Detailed explanation of Layer pop-up layer style

    Learn the layer pop-up box. Before the project used the bootstrap modal box, and later changed to the layer pop-up box. At the end of the article, I will share some code of the project. Friends who need it can refer to it.
    2017-08-08
  • Some optimization methods for rendering model lag problem

    There are always performance problems to load large models with ThreeJS. Performance optimization generally includes loading performance optimization, rendering frame rate optimization, memory optimization, etc. The following article mainly introduces some optimization methods for the problem of lag in rendering models. Friends who need it can refer to it.
    2024-02-02
  • High-efficiency JavaScript writing skills

    Recently, I was writing a JavaScript framework and found that there were many details that were not paid enough attention to, so I began to pay attention to some tips for JavaScript to improve efficiency. I will share it with you here. If you are interested, you can refer to it.
    2013-08-08
  • JS plug-in amCharts implements the default display of numerical functions of drawing column charts

    This article mainly introduces the JS plug-in amCharts to realize the default display of numerical values ​​in drawing column charts. It analyzes the relevant operation techniques of amCharts plug-in to draw column charts and display numerical values ​​in combination with examples. Friends who need it can refer to it
    2019-11-11
  • Examples of js object merging and combining and comprehensive application

    This article mainly introduces relevant information about js object merging and array combination and comprehensive application examples. This article will introduce common JS object merging and array combination methods to help readers better understand and use these methods. Friends who need it can refer to it.
    2023-11-11
  • Detailed explanation of the method of implementing scatter plots and bubble plots

    This article will introduce to you two other two visual charts, using scatter plots and bubble charts. The article introduces them in many aspects in a very detailed way. Let’s take a look together below.
    2016-09-09
  • JS implements simple mobile mouse dragging

    This article mainly introduces JS to implement simple mobile mouse drag and drop. The sample code in the article is introduced in detail and has a certain reference value. Interested friends can refer to it.
    2020-07-07

Latest Comments