简体   繁体   中英

Appending Query String to URL

I am taking some data from user , and then taking data from server, by a get request, sending the request parameters in query string. How should I change the URL, so that it contains the query string when it shows data for those request parameters in browser

like abc.com while showing data for param1 and param 2 should be : abc.com?param1=val1&param2=val2

$.get("/My_sevlet?asin="+val1+"&param2="+val2,function(data){addToTables(data);hideLoading();},"text");

when it shows results from server in browser still, the URL is abc.com. Thanks in advance

如果您的意思是我想的那样-您将无法更改浏览器窗口中显示的URL。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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