//获取url中ID的值function getParamByName(name, url) { var match = RegExp(‘[?&]‘ + name + ‘=([^&]*)‘).exec(url); return match && decodeURIComponent(match[1].replace(/\+/g, ‘ ‘).replace(‘#‘, ‘‘)); }
var ID = getParamByName("memberid", window.location);
时间: 2024-10-21 04:37:21