截取v參數的值
1.s參數后帶&
2.s參數結尾
var matchReg =/([&|?]s)=[^&]*/g
console.log('?test=test&s=we&type=long'.match(matchReg))
console.log('?s=we&type=long'.match(matchReg))
截取v參數的值
1.s參數后帶&
2.s參數結尾
var matchReg =/([&|?]s)=[^&]*/g
console.log('?test=test&s=we&type=long'.match(matchReg))
console.log('?s=we&type=long'.match(matchReg))