简体   繁体   English

具有GET请求参数的JS更新URL

[英]JS update URL with GET request parameters

I need to submit GET request and add a parameters from this request to the end of the URL. 我需要提交GET请求并将此请求中的参数添加到URL的末尾。 Without page refreshing or HTML5 history API . 没有页面刷新HTML5历史API

Is it possible? 可能吗?

For example: 例如:

Original URL: 原始网址:

http://site.ch/page

After GET request: 在GET请求之后:

http://site.ch/page?param_1=1&param_2=2

我知道的唯一方法是使用URL的片段部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM