Home  >  Article  >  Web Front-end  >  HTML input的记忆功能_html/css_WEB-ITnose

HTML input的记忆功能_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:08:261815browse

页面是.cshtml,页面刷新以后,怎么让输入框中上次输入的值不变?


回复讨论(解决方案)

如果页面刷新还需要保存数据,可能需要把数据保存到cookie里,然后再读取

你说的这个刷新没弄过啊 我项目用的保留查询 条件,是查询条件传到后台, 后台又把查询条件传回来的  不知道刷新怎么搞

基本没用到过刷新

用户刷新页面,就是为了清除页面已键入的内容。为啥要让他的值保留呐?

HTML实现这个....动态网页可以很轻松实现

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