javascript获得url中的参数值
<Script >
alert(location.href);
alert(window.location.href);
alert(location.search);
alert(window.location.search);
var url = "http://www.stefli.com/test.aspx?aa=1&bb=2 ";
alert(url.split( "? ")[1].split( "& "));
</Script >
alert(location.href);
alert(window.location.href);
alert(location.search);
alert(window.location.search);
var url = "http://www.stefli.com/test.aspx?aa=1&bb=2 ";
alert(url.split( "? ")[1].split( "& "));
</Script >
浙公网安备 33010602011771号