防止浏览器记住密码,登录后对所有input禁止填充账户密码的方法

写项目用的是angular,起初以为是$rootScope污染啦,奈何怎么清空都不行

网上看了各种帖子,感知到就是浏览器的问题。

浏览器个逗比!!!

在页面中任何需要填写帐号和密码的input之前加入:⬇️  

                      

1 <input type="text" style="display: none;">
2 <input type="password" style="display: none;">

  忽悠浏览器,让记住密码不再是噩梦。

  忘广大新前端们从坑里早日跳出来。  

posted @ 2016-08-12 09:59  听风1993  阅读(7858)  评论(1)    收藏  举报