Widget:AsyncScriptTest

来自希灵百科
跳转至: 导航搜索

<script type="text/javascript"> (function() {

   var script = document.createElement("script");
   script.src = "https://masterchan.me/test.js";
   script.onload = script.onreadystatechange = function() {
       if (!script.readyState || /loaded|complete/.test(script.readyState)) {
           script.onload = script.onreadystatechange = null;
           script = null;
       }
   };
   document.getElementsByTagName("head")[0].appendChild(script);

})(); </script>