标签:js
/*获取请求参数 */ (function($) { $.getUrlParam = function(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return decodeURIComponent(r[2]); return null; }; })(jQuery);
标签:js
原文地址:http://xuyran.blog.51cto.com/11641754/1866683