拾玖
舔狗日记怎么调用?[em_24]
<html lang="zh">
<title>舔狗日记</title>
<body>
<script>
function loadXMLDoc()
{
var xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("Dog").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","https://api.ixiaowai.cn/tgrj/index.php",true);
xmlhttp.send();
}
</script>
<span id="Dog"><script>loadXMLDoc()</script>
</body>
</html>
有没有更简单的写法?