其实这个功能比较小,本着自己造轮子的优良传统。。。。就自己造一个好了

<head>
    <title></title>
    <script src="A2D.js" type="text/javascript"></script>
</head>
<body>
    <script language="javascript" type="text/javascript">
        
        $.loadScript(["1.js", "2.js"], function () {  //load多个的写法
            handler1();//这个函数在1.js中定义
            handler2();//这个函数在2.js中定义
        });

        $.loadScript("1.js", function () {//load 1个的写法
            handler1();
        });
    </script>
</body>

虽然小,但是这个功能非常实用。 

code download

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案