When using pure front-end processing with js, you will encounter the problem of passing the parameters of one web page to the next page through the get method.
At this time, you can use js to get the parameters in the url of the current page. get parameter. The core statement is:
window.location.href
The detailed code will not be explained, there are comments, you can understand it after reading it. It is packaged into a jQuery expansion package.