window.location.search

http://i.cnblogs.com/EditPosts.aspx?opt=1&opt2=x

就拿上面这个URL来说window.location.search的返回值为opt=1&opt2=x

 

也就是说,返回值为url中?后面的部分。。。

posted @ 2014-11-26 16:48  VoctrALs  阅读(141)  评论(0编辑  收藏  举报