相关代码:
Function isRegisterUserName(s) Set regEx = New RegExp regEx.Pattern = "[^ -}]" regEx.IgnoreCase = True regEx.Global = True isRegisterUserName = regEx.Test(s) End Function
Function isvalid(form) xm = form.xm.value if Not isRegisterUserName(xm) Then alert "This could not input Chinese" Else isvalid = True End If End Function |
|