阿拉米斯

Go home or stand up, it's your fucking choice. Do you still remember the reason why you are here?!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年5月16日

摘要: 方法一:正则分析法function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }调用方法:alert(GetQueryString("参数名"));方法二:< 阅读全文

posted @ 2013-05-16 15:26 阿拉米斯 阅读(113) 评论(0) 推荐(0)