通过正则exec获取url链接上面的参数
ar str ='https://xx.eerr.com/design/certified?channel=mtxxswaa888&bd_vid=xxx' var reg = /([^?&=]+)=([^?&=]+)/g while(res = reg.exec(str)){ console.log(res); }
ar str ='https://xx.eerr.com/design/certified?channel=mtxxswaa888&bd_vid=xxx' var reg = /([^?&=]+)=([^?&=]+)/g while(res = reg.exec(str)){ console.log(res); }