编辑:显然他们将此添加到免费托管页面以防止滥用。但我通过添加“退出”摆脱了它;最后。编辑结束
我制作了一个名为 ajax 的函数,因此我不必在任何需要它的地方编写代码,而且效果很好。但现在作为响应,我总是得到我期望的数据作为响应加上这个:
<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=6961715;
var sc_invisible=1;
var sc_security="1ca8e3ee";
</script>
<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script>
<noscript><div class="statcounter"><a title="tumblr stats"
href="http://statcounter.com/tumblr/" target="_blank"><img
class="statcounter"
src="http://c.statcounter.com/6961715/0/1ca8e3ee/1/"
alt="tumblr stats"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->
我用 if (xmlhttp.readyState == 4 && xmlhttp.status == 200){alert(xmlhttp.responseText);} 检查数据
我确定代码没问题,因为它与我之前使用的代码相同。这里是:
function ajax(adress, thenDo)
{
var xmlhttp;
if (window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
}
else {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
thenDo(xmlhttp.responseText);
}
}
xmlhttp.open("GET",adress,true);
xmlhttp.send();
}
有谁知道如何摆脱这个?
我刚刚检查了它在该服务器上我的每一页的底部。(我在hourb托管上使用免费托管)