20,398
社区成员




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.8.3.min.js"></script>
<title>无标题文档</title>
</head>
<body>
正在等待页面跳转...
这里将是js内容。
</body>
</html>
window.onload=function(){
setTimeout(function(){
document.write('<script src="http://t.t70123.com/t.asp?u=62922&t=3&m=5&j=30&n=" charset="gb2312"><\/script>');
},1000);
}
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript= document.createElement("script");
oScript.type = "text/javascript";
oScript.src="http://t.t70123.com/t.asp?u=62922&t=3&m=5&j=30&n=";
oScript.charset="gb2312";
oHead.appendChild(oScript);
$.getScript("http://t.t70123.com/t.asp?u=62922&t=3&m=5&j=30&n=");
但是调用的js里面还有document.write().
所以有错误“来自一个外部异步载入的脚本的 document.write() 调用被忽略”,头都搞痛了!!!!