<input type="password" name="" id="">可以这样写
<input type="text" οnfοcus="this.type='password'" name="" id="">
<input type="password" name="" id="">可以这样写
<input type="text" οnfοcus="this.type='password'" name="" id="">
转载于:https://www.cnblogs.com/nazi/p/4380701.html