取值
var urlParam= window.location.search;//取到地址栏里?后面的字符串
var loc = urlParam.substring(urlParam.lastIndexOf(‘=‘)+1, urlParam.length);//取到等号后面的字符串
时间: 2024-10-07 22:53:04
取值
var urlParam= window.location.search;//取到地址栏里?后面的字符串
var loc = urlParam.substring(urlParam.lastIndexOf(‘=‘)+1, urlParam.length);//取到等号后面的字符串