在網(wǎng)頁中注冊(cè)會(huì)員用戶名必須以字母開頭怎么實(shí)現(xiàn)?
加入js 判斷:
var first = value.substring(0,1);if (!((first >= 'a' && first <= 'z') || (first >= 'A' && first <= 'Z')) { //出錯(cuò) alert("用戶名必須以字母開頭!");}
在網(wǎng)頁中注冊(cè)會(huì)員用戶名必須以字母開頭怎么實(shí)現(xiàn)?
加入js 判斷:
var first = value.substring(0,1);if (!((first >= 'a' && first <= 'z') || (first >= 'A' && first <= 'Z')) { //出錯(cuò) alert("用戶名必須以字母開頭!");}