简体   繁体   中英

How to read response body data from another URL using javascript?

How can i read response body data from another url.

Im try to read some website url response body data to my site . (as javascript alert or whatever)

" https://example.com/export/file "

If you want to read web resources using plain old Javascript, you can use XMLHttpRequests. For more info, read here

What you are trying to do is referred to as making an "AJAX" call. If you want other ways of doing it, or want to use other libraries (eg JQuery) to get this info, you can google "AJAX with ...." to help get more info

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM