开发者

How to get the response of an http website withing a string using JavaScript?

开发者 https://www.devze.com 2023-03-12 08:32 出处:网络
How to get the response of an http website within a string? Whatever it开发者_运维技巧 was an xml, JSON, html ...?see this http://ajaxpatterns.org/XMLHttpRequest_Call.

How to get the response of an http website within a string? Whatever it开发者_运维技巧 was an xml, JSON, html ...?


see this http://ajaxpatterns.org/XMLHttpRequest_Call.

you can get the http status code with the status property on the xhr. You can get the actual response text in the responseText property.

0

精彩评论

暂无评论...
验证码 换一张
取 消