http 直接从body里传输数据
https://images2018.cnblogs.com/blog/1107551/201805/1107551-20180516133626139-12631293.png1. 当数据是未经处理的json字符串时,后台接收到的是经过urlencode编码后的base64编码:https://images2018.cnblogs.com/blog/1107551/201805/1107551-20180516133952306-668252501.pnghttps://images2018.cnblogs.com/blog/1107551/201805/1107551-20180516134426372-1080911536.png 此时特殊符号都被编译了https://images2018.cnblogs.com/blog/1107551/201805/1107551-20180516134530073-67434533.png经过urldecode函数解析后,才是原json字符串。-----------------------------------------------------------------------------------------------------------------------------------------------------------但是一般不这样直接传原数据格式json字符串,一般传经过base64编码后的字符串。然后在后台经过base64_decode函数解码
页:
[1]