node.js with express how to remove the query string from the url

后端 未结 9 1423
孤街浪徒
孤街浪徒 2020-12-29 19:41

I have a button that is performing a get to my page and adding a filter to the query string. My code applies that filter to the grid...but the user can remove/edit that fil

9条回答
  •  清歌不尽
    2020-12-29 20:23

    In order to avoid reload the page by forcing a redirect, I added the following to the section of my .ejs file:

    
    

    Source: http://atodorov.org/blog/2013/01/28/remove-query-string-with-javascript-and-html5/

提交回复
热议问题