标签:
1、querystring参数处理
序列化 > querystring.stringify({‘name‘:‘scott‘,course:[‘jade‘,‘node‘],from:‘‘}) ‘name=scott&course=jade&course=node&from=‘ > querystring.stringify({‘name‘:‘scott‘,course:[‘jade‘,‘node‘],from:‘‘}, ‘,‘) ‘name=scott,course=jade,course=node,from=‘ > querystring.stringify({‘name‘:‘scott‘,course:[‘jade‘,‘node‘],from:‘‘}, ‘,‘, ‘: ‘) ‘name:scott,course:jade,course:node,from:‘ 反序列化 > querystring.parse(‘name=scott&course=jade&course=node&from=‘) { name: ‘scott‘, course: [ ‘jade‘, ‘node‘ ], from: ‘‘ }
转义 > querystring.escape(‘你好‘) ‘%E4%BD%A0%E5%A5%BD‘ 反转义 > querystring.unescape(‘%E4%BD%A0%E5%A5%BD‘) ‘你好‘
标签:
原文地址:http://www.cnblogs.com/tianxintian22/p/5103983.html