js 正则表达式判断是否有数字和字母var p = [0-9]var b = p.test(string)true,说明有数字p = [a-z]ib = p.test(string)true,说明有英文字母p = [0-9a-z]ib = p.test2023-03-20JavaScript410