//不刷新页面,更改页面的url
var originUrl=window.location.href;
var valiable = originUrl.split(“?”)[0];
window.history.pushState(null, null, valiable+”?name=”+self.dname+”&line=”+type+””);
版权声明:本文为dxj124原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
//不刷新页面,更改页面的url
var originUrl=window.location.href;
var valiable = originUrl.split(“?”)[0];
window.history.pushState(null, null, valiable+”?name=”+self.dname+”&line=”+type+””);