var str = window.location.search; 例<a href="http://localhost/default.aspx?a=1&b=2"></a> str 会得到?a=1&b=2