获取url中的参数.html var d = "http://food.cashier.m.test.ateyun.com/?weidian_id=1444company_id=370";(function ($) {$.getUrlParam = function (name,reurl ) {var reg = new RegExp("(^|)" + name + "=([^]*)(|$)");var r = reurl.substr(1).mat
var d = "http://food.cashier.m.test.ateyun.com/?weidian_id=1444&company_id=370"; (function ($) { $.getUrlParam = function (name,reurl ) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = reurl.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; } })(jQuery); var weidian_id = $.getUrlParam('weidian_id',d); alert(weidian_id);