我看了网上说:
1、服务端不返回response.setContent-type:application/json,前端dataType指定json,解码http响应内容,data类型是Object
2、服务端返回response.setcontent-type:application/json,前端dataType不指定json,解码 http响应内容,data类型是Object
难道dataType和服务端只要设置一个就可以,两者功的么?这两个是不是重复了
一般post请求服务端需要设置response.setcontent-type?get请求不用吗
就是ajax请求
撒科打诨
相关分类