是否有一些如何使用代码添加新的URL参数,例如:
http://example.com/mypage?par=1&par2=2
我需要在代码中使用:
if (myVar == 'abc') {
// add a par3=3 without navigate/refresh the page - just to
// add a decoration on the URL for bookmarks purposes,
// for example: when user bookmark it and go back,
//I will be displaying the same dialog box
}