如果不想让浏览器缓存input的值,有2种方法:
方法一:
在不想使用缓存的input中添加 autocomplete="off";
eg: <input type="text" autocomplete="off" name="test" />
方法二:
在 input 所在的form标签中添加 autocomplete="off";
eg:
<form action="#" autocomplete="off">
<input type="text" autocomplete="off" name="test" />
</form>
原文:http://www.cnblogs.com/kungfupanda/p/4077249.html