// jQuery url get parameters function [获取URL的GET参数值]// <code>//var GET = $.urlGet(); //获取URL的Get参数//var id = GET['id']; //取得id的值// </code>// url get parameters// public// return array() (function($) {$.extend({ urlGet:function(){var aQuery = window.location.href.split("?"); //取得Get参数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与ValueaGET[aTmp[0]] = aTmp[1];}}return aGET;}})})(jQuery);
100字范文,内容丰富有趣,生活中的好帮手!