2016年7月20日
摘要: QueryString模块 "QueryString" 模块用于实现URL参数字符串与参数对象的互相转换 此类一共包括4个方法: querystring.stringify(obj, [sep], [eq]) querystring.parse(str, [sep], [eq], [options] 阅读全文
posted @ 2016-07-20 17:53 半夏微澜ぺ 阅读(454) 评论(0) 推荐(0)
摘要: 1 我们可以使用.parse方法来将一个URL字符串转换为URL对象 例如: url.parse('http://user:pass@host.com:8080/p/a/t/h?query=string#hash');/* =>{ protocol: 'http:', auth: 'user:pas 阅读全文
posted @ 2016-07-20 17:05 半夏微澜ぺ 阅读(496) 评论(0) 推荐(0)