1、去除url中的某个参数
var url=window.location.href; var reg=new RegExp("(&item.isReply=\\d+)","gmi"); url=url.replace(reg,"");