2020-3-27原生JS/ZL3:改变标签的类型

1、 let type = $("#pwd").attr(‘type’)
if(type === “password”){
$("#pwd").attr(“type”,“text”);
}else{
$("#pwd").attr(“type”,“password”);
}

发布了11 篇原创文章 · 获赞 0 · 访问量 38

猜你喜欢

转载自blog.csdn.net/qq_25787687/article/details/105143586
zl