请教一个querystring.parse问题
拿到数据为:
transdata={"transid":"32261705311040293467"}&sign=aa+bb+cc=&signtype=RSA
要把上面的数据转换为object最简单的方法应该就是用querystring.parse(根据&分割再取也可以,但是肯定是要负责些)
但是querystring.parse好像会decodeURIComponent 这样的话会导致源数据里的+ 变成 空格
各位大佬有什么办法吗?
看了下APIquerystring.parse 最后一个参数options 里默认decodeURIComponent函数。