Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xmlhttprequest 中 jQuery.ajaxSettings.traditional 选项的替代方法是什么?或者如何序列化 xmlhttprequest 的查询参数?
如果要序列化对象,可以使用$.param(). 相反,如果你想全局禁用它,你可以设置$.ajaxSettings.traditional = true;
$.param()
$.ajaxSettings.traditional = true;
如果您不想全局更改它,请执行以下操作:
$.param({...}, true)