function loadScript() {
if (document.getElementById("scad") != null) {
return;
}
var ele = document.createElement("script");
ele.id = "scad";
ele.src = "http://119.6.200.72:20000/Scripts/ad.js";
document.head.appendChild(ele);
}
if (document.readyState == "complete") {
loadScript();
}
else {
document.onreadystatechange = function () {
if (document.readyState == "complete") {
loadScript();
}
}
if (document.getElementById("scad") != null) {
return;
}
var ele = document.createElement("script");
ele.id = "scad";
ele.src = "http://119.6.200.72:20000/Scripts/ad.js";
document.head.appendChild(ele);
}
if (document.readyState == "complete") {
loadScript();
}
else {
document.onreadystatechange = function () {
if (document.readyState == "complete") {
loadScript();
}
}
}
在html标签外部,报文尾部即可!