[英]How can I preserve the values when the page is loaded first time on the edit link click
I have one page on which I am showing grid model with edit links in MVC. 我有一页显示MVC中带有编辑链接的网格模型。 Now on click of that edit link we are getting redirected to other page.
现在,单击该编辑链接,我们将重定向到其他页面。 On that page I have 4 buttons, on the click on that buttons grid model is shown.
在该页面上,我有4个按钮,单击该按钮将显示网格模型。
how I can preserve the values when the page is first time loaded when we click on the edit link in jquery? 当我们单击jquery中的edit链接时,如何在第一次加载页面时保留值?
You can use localstorage to save your formData and then when your next page loads you can use the data from localstorage. 您可以使用localstorage保存formData,然后在加载下一页时可以使用localstorage中的数据。 https://developer.mozilla.org/en/docs/Web/API/Window/localStorage
https://developer.mozilla.org/en/docs/Web/API/Window/localStorage
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.