JS动态给当前页面url传参赋值 比如要给 www.xxx.com 后面拼接参数 history.pushState("","","index?gameName=fff") 结果: www.xxx.com/index?gameName=fff