html静态页面传值

window.location.search;  

解释:location.search是从当前URL的?号开始的字符串

例如:http://detail.m.tmall.com/item.htm?id=45177  取值之后的字符串是:?id=45177

posted @ 2015-05-14 17:51  mipengxing  阅读(166)  评论(0编辑  收藏  举报