How to prevent google chrome from caching my inputs, esp hidden ones when user click back?

后端 未结 2 381
渐次进展
渐次进展 2021-01-18 15:20

i have an asp.net mvc app which have quite a few hidden inputs to keep values around and formatting their names so that i can use the Model binding later when i submit the f

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-18 15:24

    I guess you can reset the hidden fields as soon the page is loaded.

    
    

    This code is executed when you hit "back".

提交回复
热议问题