码迷,mamicode.com
首页 > Web开发 > 详细

jsp 页面跳转后修改数据,返回时不更新

时间:2019-09-04 18:52:39      阅读:84      评论:0      收藏:0      [点我收藏+]

标签:返回   pre   splay   数据   get   input   inpu   页面跳转   attribute   

项目jsp页面上用隐藏input框接收获取数据,在跳转入另一页面前,js操作修改数据,但返回时发现无效。

原页面:

<input type="hidden" value="<%=request.getAttribute("wxname")%>" id="wxname"/>

解决方法:

将 type="hidden" 换成 style="display:none" 解决。

jsp 页面跳转后修改数据,返回时不更新

标签:返回   pre   splay   数据   get   input   inpu   页面跳转   attribute   

原文地址:https://www.cnblogs.com/linjiangxian/p/11460894.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!