摘要: function getParam(url){ var x={}; var pattern=/(\w+)=(\w+)/ig; url.replace(pattern, function(a,b,c){ x[b]=c; }); console.log(x["name"]); //测试用 name } 阅读全文
posted @ 2021-03-14 20:58 Will_the_Wizard 阅读(291) 评论(0) 推荐(0)