火狐浏览器缓存登录名、密码解决方法

该问题解决方法有两种:

第一种方法:在不需要缓存的input标签加入autocomplete="off" 属性。

如果第一种方法不管用可以用第二种解决方法:

第二种方法:

在body标签内首先加入以下标签:

<input style="display:none" type="text" name="fakeusernameremembered" />
<input style="display:none" type="password" name="fakepasswordremembered" />

虽然第二种方法比较low但是还比较实用。

原文地址:https://www.cnblogs.com/lushousong/p/5690500.html