Use JSONP to load an html page

后端 未结 6 779
不思量自难忘°
不思量自难忘° 2020-11-27 17:13

I\'m trying to load an external page using JSONP, but the page is an HTML page, I just want to grab the contents of it using ajax.

EDIT: T

6条回答
  •  难免孤独
    2020-11-27 17:37

    I don't think this is possible. JSONP requires that the response is rendered properly.

    If you want another solution, what about loading the url in an iframe and trying to talk through the iframe. I'm not 100% positive it will work, but it's worth a shot.

提交回复
热议问题