function isChn(str){ var reg=/1+$/; if (!reg.test(str)){ alert( “不全是中文” ); return false ; }else{ alert( “全是中文” ); return true ; } } \u4E00-\u9FA5 ↩︎