取值
var urlParam= window.location.search;//取到地址栏里?后面的字符串 var loc = urlParam.substring(urlParam.lastIndexOf('=')+1, urlParam.length);//取到等号后面的字符串