html静态页面传值

window.location.search;  

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

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

原文地址:https://www.cnblogs.com/mpxBlog/p/4503984.html