blk-084,3u8514,苏代为燕说齐
net_lover [原作]
本文放在这里,算作一个备份吧。
<script>
var odiv
var xh
function getxml(标准化越来越近了)()
{
odiv = document.all.m
odiv.innerhtml = "正在装载栏目数据,请稍侯......."
odiv.style.display= ""
xh = new activexobject("microsoft.xml(标准化越来越近了)http")
xh.onreadystatechange = getready
xh.open("get",a.value,true)
xh.send()
}
function getready()
{
if(xh.readystate==4)
{
if(xh.status==200)
{
odiv.innerhtml = "完成"
}
else
{
odiv.innerhtml = "抱歉,装载数据失败。原因:" + xh.statustext
}
}
}
</script>
<body>
xml(标准化越来越近了)http异步的例子:
url:<input name=a value="https://www.acnow.net" style="width:600px">
<input onclick="getxml(标准化越来越近了)()" type="button" value="得到源代码">
<input onclick="if(xh && xh.responsetext) {alert(xh.responsetext);odiv.innerhtml=xh.responsetext}" type="button" value="显示源代码">
<p id=m></p>
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Net Core Web Api项目与在NginX下发布的方法
asp.net core3.1 引用的元包dll版本兼容性问题解决方案
IdentityServer4实现.Net Core API接口权限认证(快速入门)
ASP.NET Core MVC通过IViewLocationExpander扩展视图搜索路径的实现
网友评论