案例展示三
发布时间:2018-09-26 15:00:33 丨 浏览次数:
function tag_arcclick(aid)
{
var ajax = new XMLHttpRequest();
ajax.open("get", "/index.php?m=api&c=Ajax&a=arcclick&aid="+aid+"&type=view", true);
ajax.setRequestHeader("X-Requested-With","XMLHttpRequest");
ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");
ajax.send();
ajax.onreadystatechange = function () {
if (ajax.readyState==4 && ajax.status==200) {
document.getElementById("eyou_arcclick_1712829897_"+aid).innerHTML = ajax.responseText;
}
}
}
![](/public/upload/remote/2018/09/26/5bab2ea53a4e8.png)