这段代码为啥只能在ie上运行,在360上不行
<script type="text/javascript">var name=new Array();
var temp=prompt("Please Enter Your Name","");
while(1)
{
if(temp == "")
{
break;
}
name=temp;
temp=prompt("Please Enter Your Name","");
}
name.sort();
//for(each in name)
//{
// document.write(name+"<br>");
//}
var namesList = name.join("<br/>")
document.write(namesList); while 判断条件是1?这不是会一直循环?:sweat: 学习:shock: {:10_266:}
页:
[1]