📅  最后修改于: 2022-03-11 15:02:53.758000             🧑  作者: Mango
$("#showpaswd").click(function () {
var x = document.getElementById("cpassword");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
});