1.js方法,获取url传递的值
function getQueryStringRegExp(name) { var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i"); if (reg.test(location.href)) return decodeURIComponent(RegExp.$2.replace(/\+/g, " ")); return ""; }
2.
2024-03-09 16:04:53
1.js方法,获取url传递的值
function getQueryStringRegExp(name) { var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i"); if (reg.test(location.href)) return decodeURIComponent(RegExp.$2.replace(/\+/g, " ")); return ""; }
2.
下一篇:04:MySQL正则表达式笔记4