“Widget:AsyncScriptTest”的版本间的差异
来自希灵百科
(创建页面,内容为“<script type="text/javascript"> (function() { var script = document.createElement("script"); script.src = "https://masterchan.me/test.js"; script.onload...”) |
(没有差异)
|
2017年1月17日 (二) 16:54的最新版本
<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>