数组的length怎么会不存在呢??
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript" type="text/javascript" >
var numnames=0;
var names= new Array();
function w(){
document.theform.newname.value=names[numnames];
numnames++;
names.sort();
document.theform.sorted.value=names.join("=");
}
</script>
</head>
<body>
<h1>按顺序排列数组</h1>
<form id =" theform" method="post" action="">
name:
<input type="text" name="newname" size="20"/>
<input type="button" value="点击" onclick="w()"/>
<br/>
<h3>名字排序</h3>
<textarea cols="60" rows="10" name="sorted">
the sorted names will qppear here.
</textarea>
</form>
</body>
</html>