jQuery的$ajax方法响应数据类型有哪几种
2 回答

胡子哥哥
TA贡献1825条经验 获得超6个赞
text/html/script/xml/json等,他们当然都是响应数据的,就像你发送了一个链接,服务器返回这个链接所对应的表现形式。
最基础的ajax只有两种数据相应:即
XMLHttpRequest 对象的 responseText 或 responseXML 属性。
responseText 获得字符串形式的响应数据。
responseXML 获得 XML 形式的响应数据。
- 2 回答
- 0 关注
- 727 浏览
添加回答
举报
0/150
提交
取消