标签:for location jquer log extend code console ilo [1]
(function($){ $.extend({ urlGet:function () { var aQuery = window.location.href.split("?");//取得Get参 var test = window.location.href; var aGET = new Array(); if(aQuery.length > 1){ var aBuf = aQuery[1].split("&"); for(var i=0, iLoop = aBuf.length; i<iLoop; i++){ var aTmp = aBuf[i].split("=");//分离key与Value aGET[aTmp[0]] = aTmp[1]; } } return aGET; } }); })(jQuery);
使用:console.info($.urlGet());
标签:for location jquer log extend code console ilo [1]
原文地址:http://www.cnblogs.com/ryans/p/6527321.html