var aMsg[0] = ' <font color=red >←用户名不能为空 </red > ';
var aMsg[1] = ' <font color=red >←密码不能为空 </red > ';
var aMsg[2] = ' <font color=red >←标题不能为空 </red > '; _______________________________________________________________
aMsg[0] = ' <font color=red >←用户名不能为空 </red > ';
aMsg[1] = ' <font color=red >←密码不能为空 </red > ';
aMsg[2] = ' <font color=red >←标题不能为空 </red > ';
var aMsg[1] = ' <font color=red >←密码不能为空 </red > ';
var aMsg[2] = ' <font color=red >←标题不能为空 </red > '; _______________________________________________________________
aMsg[0] = ' <font color=red >←用户名不能为空 </red > ';
aMsg[1] = ' <font color=red >←密码不能为空 </red > ';
aMsg[2] = ' <font color=red >←标题不能为空 </red > ';
1.括号不配对,少一个}
2.alertStringArray[i]是字符不具有innerHTML属性,只有dom对象才支持此属性
{
alertStringArray[i].innerHTML = aMsg[i];
//return;
}
document.getElementById(alertStringArray[i]).innerHTML = aMsg[i];