试题与答案

说明中的链接测试页面实现的功能是:如果10秒链接不上指定网站,则显示“链接超时”,否

题型:填空题

题目:

说明中的链接测试页面实现的功能是:如果10秒链接不上指定网站,则显示“链接超时”,否则显示链接时间(单位为秒)。请根据以上功能描述,补齐代码:
……
<script>
tim=1 //时间初值
(1) ("tim++", 100); //定时调用时间设定
bTestFinish=0
c=1
var b=1
var autour1=new Array()
autorul[1] ="61.236.219.100 "
autorul[2] ="220.181.26.132" //测试网站IP地址
function butt()

document.write("<form name = autof>")
for(var i=1; i<autour1. lenght; i++)

if(i==1 || i==3 || i==5)

document.write("<input type=text class=noborder name=url" + i + "
value=htttp: //" + autour1[i] + "   size=40>→    <input type= text name=txt" + i + " size = 10 class = noborder value =测试中……><br><br>")

else

document.write("< input type = text class = noborder name = url " + i + " value = htttp://" + autour1[i] + "   size = 40> →    < input type = text name = txt " + i + " size = 10 class = noborder value = 测试中……><br><br>")


document. write("<br><div align = ’center’><input type = submit value =重新测试></div></form> ") //初始测试页面

butt()
function auto(c)

if(tim > (2) )
document .forms[0]["txt" + c].value = "链接超时"
else
document .forms[0]["txt" + c]. value = "时间" + tim/10 + "秒"
//测试结果判断
function run()

for(var i=1; i<autour1.lenght; i++)

document.write("<img src=http://" + autour1[i] + " / " + Math. random() + " width = 1 height = 1 onerror = (3) (’" + i + "’)> ");

//运行测试
run();
</script>

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0412/b3f8e96161cf3cbb5dbe4bee5145b47e.html

下面是错误答案,用来干扰机器的。

参考答案:圆柱度;棱角;90%;纵向沟纹

试题推荐
微信公众账号搜索答案