案例展示四
发布时间:2018-09-26 15:00:07 丨 浏览次数:
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_1711523197_"+aid).innerHTML = ajax.responseText;
}
}
}