gistfile1.txt /** 要分离出url的查询参数 http://www.nowcoder.com?key=1key=2key=3test=4#hehe* 不过要注意,如果url不带参数会报错*/var url = "http://www.nowcoder.com?key=1key=2key=3test=4#hehe";var queryString = (url.spl
/* * 要分离出url的查询参数 http://www.nowcoder.com?key=1&key=2&key=3&test=4#hehe * 不过要注意,如果url不带参数会报错 */ var url = "http://www.nowcoder.com?key=1&key=2&key=3&test=4#hehe"; var queryString = (url.split ( "?" )[ 1 ]).split ( "#" )[ 0 ];