jquery 1.4 的contenttype 默认是
contentType: 'application/x-www-form-urlencoded;charset=UTF-8',
1.6变为
contentType: 'application/x-www-form-urlencoded',
如果不在$.ajax 中加
contentType: 'application/x-www-form-urlencoded;charset=UTF-8',
传回 request 的 charactor charset 是 null
本文深入探讨了jQuery 1.4与1.6版本中关于contentType设置的变化,特别关注默认值从'application/x-www-form-urlencoded;charset=UTF-8'更改为'application/x-www-form-urlencoded'的影响,以及不明确设置contentType可能导致的request charset问题。
1506

被折叠的 条评论
为什么被折叠?



