帮忙看一下这个正则表达式, 谢谢.
下面这个正则看得不是很明白, 这是怎么得到一个数组的, 而数组[1]就是参数的值?
//用JS接收Get的参数function QueryString(item){ debugger; var svalue = location.search.match(new RegExp("[\?\&]" + item + "=([^\&]*)(\&?)", "i")); //i执行对大小写不敏感的匹配。 return svalue ? svalue[1] : svalue;}