最近弄前端,测试须自己测试接口,参数中有个data里面是json对象格式的。
弄好一会传不上去。
tips:
1.选中了raw,才会选取raw所写的参数;如果选中x-www-form-urlencoded会传x-www-form-urlencoded其参数
2.raw需要选中json
3.拼接的参数,需要是在双引号下,单引号会报错(我用nodejs写的接口解析是会这样的)
最近弄前端,测试须自己测试接口,参数中有个data里面是json对象格式的。
弄好一会传不上去。
tips:
1.选中了raw,才会选取raw所写的参数;如果选中x-www-form-urlencoded会传x-www-form-urlencoded其参数
2.raw需要选中json
3.拼接的参数,需要是在双引号下,单引号会报错(我用nodejs写的接口解析是会这样的)