//设置和获取href属性中跟在问号后面的值
var category=window.location.search;
//截取,获取获得category的具体值
var cateval = category.substring(category.lastIndexOf(‘=’)+1, category.length);
//设置和获取href属性中跟在问号后面的值
var category=window.location.search;
//截取,获取获得category的具体值
var cateval = category.substring(category.lastIndexOf(‘=’)+1, category.length);