请问这句正则的意思是什么?我一直看不懂"(^|&)"和([^&]*)(&|$)
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
完整代码:
(name) { = RegExp(+ name + ); = ...().(); (!= ) ([]); ; } = ()
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
完整代码:
(name) { = RegExp(+ name + ); = ...().(); (!= ) ([]); ; } = ()
2018-01-24
举报