encodeURIComponent应该用于编码post ajax请求的参数吗?

Yos*_*sef 6 javascript post

encodeURIComponent应该用于编码post ajax请求的参数吗?

谢谢Yosef

And*_*y E 9

假设你的请求使用的内容类型application/x-www-form-urlencoded,然后是的,它应该- POST场也是在名称值对,就像GET请求.特殊字符像&,=,[,],等需要进行编码正好相同.