2017年1月6日

摘要: //取当前页面的地址 例如http:127.0.0.1:80/aaa/index.html 返回http:127.0.0.1:80/aaa/function getUrlAddr(){ var str = window.location.href; var index = str .lastInde 阅读全文
posted @ 2017-01-06 14:40 温温婉婉 阅读(308) 评论(0) 推荐(0) 编辑
 
摘要: function getUrlParam(name){ var reg = new RegExp("(^|&)"+name+"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r != null) ret 阅读全文
posted @ 2017-01-06 14:37 温温婉婉 阅读(128) 评论(0) 推荐(0) 编辑