Small micro-channel program, how to show, hide password function

Recently engaged in the development of small programs, met hide, display the password when the computer debugging no problem, but the phone did not click on the above results, it is necessary to jump to another page jump back to display properly.

 

 

For a time it made me a headache, after finding the information, and finally know what is the reason ......

Under normal circumstances, we believe that <input> type attribute controls such as password or text <input> attributes, but! Applet is a bit special,

It is not the type to control, but is controlled by password attributes,

When the password = "true" when the type is password;

When the password = "false" when the default text type;

After the test no problem.

 

Reference: http://www.oicqzone.com/pc/2018030624098.html

Guess you like

Origin www.cnblogs.com/adongyo/p/11615742.html