var url="http://192.44545/#/asdadsa?cc=uihkh&aa=009";
if (url.match(/aa=(\S*)&/)){
url.replace(url.match(/aa=(\S*)&/)[1], '99809809')
} else {
url.match(/(\S*)parentOpenId=/)[1] +'aa=999999999'
}
URL字符串 某个值得截取替换
最新推荐文章于 2022-04-11 10:03:07 发布