摘要:
1 /** 2 * 获取GET提交的参数 3 * @return JSON格式 4 * @author Terry 5 */ 6 function getArgs(){ 7 var args = {}; 8 var match = null; 9 var search = decodeURIComponent(location.search.substring(1));10 var reg = /(?:([^&]+)=([^&]+))/g;11 while((match = reg.exec(search))!==null){12 ... 阅读全文