JS判断输入的字符串是否是数字var p = [0-9]var b = p.test(string)true,说明有数字var p = [a-z]ivar b = p.test(string)true,说明有英文字母var p = [0-9a-z]i2023-04-27JavaScript260