// 替换指定传入参数的值,oUrl为链接,paramName为参数,replaceWith为新值
function  replaceParamVal (oUrl, paramName, replaceWith) {
    var re = new RegExp('(' + paramName + '=)([^&]*)', 'gi')
    var nUrl = oUrl.replace(re, paramName + '=' + replaceWith)
    return nUrl
  }
本站提供的所有下载资源均来自互联网,仅提供学习交流使用,版权归原作者所有。如需商业使用,请联系原作者获得授权。 如您发现有涉嫌侵权的内容,请联系我们 邮箱:[email protected]