获取URL中?后面的字段 function getUrlParam(name) { var reg = new RegExp("(^|)" + name + "=([^]*)(|$)","i"); var r = window.location.search.substr(1).match(reg); if (r!=null) return (r[2]); return null; } var inviteCodeData= getUrlP
function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i"); var r = window.location.search.substr(1).match(reg); if (r!=null) return (r[2]); return null; } var inviteCodeData= getUrlParam('iCode');