Use the regular expression restrictions can only be entered in Chinese: οNKEYUP = "value = value.replace (/ [^ / U4E00- / U9FA5] / g, '')" onbeforepaste = "ClipboardData.SetData ('Text', ClipboardData.Getdata) 'Text'). Replace (/ [^ / U4E00- / U9FA5] / g, '')) "Use the regular expression limit can only enter a full range of characters: οnkeyup =" value = value.replace (/ [^ / UFF00- / uFFFF] / g, '') "onbeforepaste =" clipboardData.setData ( 'text', clipboardData.getData ( 'text'). replace (/ [^ / uFF00- / uFFFF] / g, '')) "by Regular expression limit can only enter numbers: οnkeyup = "value = value.replace (/ [^ / d] / g, '')" onbeforepaste = "ClipboardData.SetData ('Text', ClipboardData.GetData ('Text') .replace (/ [^ / d] / g, '')) "Use regular expressions to limit only numbers and English: οnkeyup =" value = value.Replace (/ [/ w] / g, '') " OnBeforepaste = "ClipboardData.SetData ('text', clipboardData.getdata ('text'). Replace (/ [^ / d] / g, '')")