JS延迟加载,简单例子,不多说:
代码如下: 程序代码
<script language="JavaScript" src="" id="my"></script>
<script>
setTimeout("document.getElementById(‘my‘).src=‘include/php.js‘; ",3000);//延时3秒
</script>
2021-12-07 06:43:09
JS延迟加载,简单例子,不多说:
代码如下: 程序代码
<script language="JavaScript" src="" id="my"></script>
<script>
setTimeout("document.getElementById(‘my‘).src=‘include/php.js‘; ",3000);//延时3秒
</script>