Home  >  Article  >  Backend Development  >  为什么输入框里面总是显示出来之前提交过的内容?

为什么输入框里面总是显示出来之前提交过的内容?

WBOY
WBOYOriginal
2016-06-06 20:17:252446browse

为什么双击文本框 之前提交插入到过数据的内容都是显示出来呢 这是怎么回事?怎样才能不这样?
为什么输入框里面总是显示出来之前提交过的内容?

回复内容:

为什么双击文本框 之前提交插入到过数据的内容都是显示出来呢 这是怎么回事?怎样才能不这样?
为什么输入框里面总是显示出来之前提交过的内容?

input 元素中增加 autocomplete="off" 属性

有些浏览器会自己记住Input文本框输入的历史记录信息,有些情况下不需要记住。
可以试下在input标签中加入autoComplete="off"属性。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn