input不保留历史记录

可以用input自带的属性,来实现禁止input保留历史记录,代码如下:

<input type="text" name="txtUserName" id="txtUserName" autocomplete="off"/>

原文地址:https://www.cnblogs.com/AngelLee2009/p/2196270.html