kevin3e

导航

2017年12月24日 #

JS獲取URL的參數

摘要: function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return nul... 阅读全文

posted @ 2017-12-24 20:13 kevin3e 阅读(227) 评论(0) 推荐(0) 编辑