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