开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜