[英]How can I get text from any specified webpage in to a variable?
不,这是不可能的,因为该页面( https://domains.google.com/checkip )通过不在 HTTP响应中放置Access-Control-Allow-Origin
标头来阻止跨域请求。
您甚至无法将页面放在iframe
因为标头x-frame-options: SAMEORIGIN
阻止页面被兼容的浏览器嵌入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.