欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

js實現(xiàn)不重復(fù)導(dǎo)入的方法

 更新時間:2016年03月02日 10:29:58   作者:yenange  
這篇文章主要介紹了js實現(xiàn)不重復(fù)導(dǎo)入的方法,實例分析了JavaScript基于文件與字符串判斷操作實現(xiàn)JS文件不重復(fù)導(dǎo)入的相關(guān)技巧,需要的朋友可以參考下

本文實例講述了js實現(xiàn)不重復(fù)導(dǎo)入的方法。分享給大家供大家參考,具體如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>無標題頁</title>
  <mce:script src="jquery-1.4.4.js" mce_src="jquery-1.4.4.js" type="text/javascript"></mce:script>
  <mce:script type="text/javascript"><!--
    function importOnce(scriptPath) {
      var scripts = document.getElementsByTagName("script");
      for (var index = 0; index < scripts.length; index++) {
        if (scripts[index].src.lastIndexOf(scriptPath) != -1) {
          return;
        }
      }
      var scriptTag = document.createElement("script");
      scriptTag.type = "text/javascript";
      scriptTag.src = scriptPath;
      var headTag = document.getElementsByTagName("head")[0];
      headTag.appendChild(scriptTag);
    }
    importOnce("jquery-1.4.4.js");
    importOnce("jquery-1.4.4.js");
    importOnce("jquery-1.4.3.js");
    importOnce("jquery-1.4.3.js");
// --></mce:script>
</head>
<body>
</body>
</html>

更多關(guān)于JavaScript相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《JavaScript查找算法技巧總結(jié)》、《JavaScript動畫特效與技巧匯總》、《JavaScript錯誤與調(diào)試技巧總結(jié)》、《JavaScript數(shù)據(jù)結(jié)構(gòu)與算法技巧總結(jié)》、《JavaScript遍歷算法與技巧總結(jié)》及《JavaScript數(shù)學(xué)運算用法總結(jié)

希望本文所述對大家JavaScript程序設(shè)計有所幫助。

相關(guān)文章

最新評論