node的querystring

querystring.stringify({name:''scott",course:['jade','java'],from=''});

=> 'name=scott&course=jade&course=java&from=' 

querystring.stringify({name:''scott",course:['jade','java'],from=''}, [连接符],[key/value间连接符]);

querystring.parse('name=scott&course=jade&course=java&from=' ,[参数1的连接符],[参数1的key/value间连接符])

=>{name:''scott",course:['jade','java'],from=''}

querystring.escape(‘<中文嗯>’)

=》 编码后的字符串

query.unescape( 编码后的字符串)

=>‘<中文嗯>’

原文地址:https://www.cnblogs.com/alan2kat/p/7411129.html