1、 let type = $("#pwd").attr(‘type’)
if(type === “password”){
$("#pwd").attr(“type”,“text”);
}else{
$("#pwd").attr(“type”,“password”);
}
2020-3-27原生JS/ZL3:改变标签的类型
猜你喜欢
转载自blog.csdn.net/qq_25787687/article/details/105143586
今日推荐
周排行