下列代码能否验证oValue变量中的字符串长度必须是6~18位?
下列代码能否验证oValue变量中的字符串长度必须是6~18位?
()if(oValue.length18||oValue.length6){//字符串长度必须是6~18位
()oUsername()span.innerHTML=长度应为6~18个字符;()
()oUsername()span.style.color=red;//设置颜色为红色
A.正确
B.错误
正确答案:正确
Tag:JavaScript及框架应用 长度 字符串
时间:2022-01-17 20:00:57