回复 (6)
V
encodeURI / decodeURI
H
引用 vincentLiuxiangencodeURI / decodeURI
@vincentLiuxiang 但是我encodeURI传过来后,数据就变成空了,还没等解码呢
Y
把步惊云改为聂风试试
X
$.ajax({ type: "POST", url: url, data: data, contentType: "application/json; charset=utf-8", dataType: "json",
这是我的参数试试
V
引用 haocaokai@vincentLiuxiang 但是我encodeURI传过来后,数据就变成空了,还没等解码呢
@haocaokai 你的 name 不是已经 encodeURI了吗? 你把 name=%xxxx%, %xxxx% 部分 decodeURI(%xxxx%)一下就好了,
需要这么手把手么。。。
还有把你的 乱码 字符串贴出来一下,贴图片,是没人愿意去帮你转码的。
H
引用 vincentLiuxiang@haocaokai 你的 name 不是已经 encodeURI了吗? 你把 name=%xxxx%, %xxxx% 部分 decodeURI(%xxxx%)一下就好了, 需要这么手把手么。...
@vincentLiuxiang 其实好像并不需要encode,直接在node端decode解码就行了,不知道为啥
参与回复
登录后即可参与回复。登录