用js正则表达式验证两个相等密码function isgt5(str){if(str.len<5) {alert("密码不少于5个字符")return false}return true}function isequal(str,str1)2023-02-22JavaScript90