for(var i=5;i>-1;i--){
for(var j=i-1;j>-1;j--){
if(temp[i] == temp[j]){
if(temp[i] !="s"){
window.alert("级别项不能相等");
return false;
}
}
}
}
此处js 中的 for循环要使用>号,使用<号时出错!The content of elements must consist of well-formed character data or markup.