我定义var psw= document.getElementById("password").value;然后写alert("密码中必须包含一个以上字母!请重输!”");window.psw.clear();无法实现
在alert弹出后面接一句psw等于空字符串即可
psw= ' '