它们之间的区别是什么
contentType: "application/json; charset=utf-8",
dataType: "json",
与
contentType: "application/json",
dataType: "text",
发布于 2016-05-11 18:52:07
当您同时调用两个API时,jQuery Ajax加载器无法正常工作。要解决此问题,必须使用Ajax设置中的isAsync
属性逐个调用API。您还需要确保设置中没有任何错误。否则,加载器将无法工作。例如,未定义的内容类型,POST/PUT/DELETE/GET调用的数据类型。
https://stackoverflow.com/questions/2722750
复制相似问题