https://www.zhihu.com/question/65557076
代码很简单,为何有历史记录,是因为get 地址栏方式请求,默认存起来了吗?
回复;
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search
.In addition, modern browsers also tend to automatically store search terms previously entered across domains, which then come up as autocomplete options when subsequent searches are performed in search inputs on that domain. This helps users who tend to do searches on the same or similar search queries over time.
翻译
此外,现代浏览器也倾向于自动存储之前跨域输入的搜索词,然后在该域的搜索输入中执行后续搜索时,这些词会作为自动完成选项出现。