api的应用场景是:指定对应的key获取url里面的value
?
/* getQuery @function @param url ----目标url @param key ---对应的key @example url = 'http://www.baidu.com/plat/view.html?platId=17; ZYC.url.getQuery(url,'platId'); //17 */ ZYC.url.getQuery = function(url,key){ var svalue = url.match(new RegExp("[\?\&]" + key + "=([^\&]*)(\&?)","i")); return svalue ? svalue[1] : svalue; }?