gpt4 book ai didi

jQuery Load 函数不加载 URL 结果?

转载 作者:行者123 更新时间:2023-12-01 07:26:28 25 4
gpt4 key购买 nike

我有生成的 ISSUU PDF 链接:

http://issuu.com/press/docs/2008-12?mode=window&printButtonEnabled=false&shareButtonEnabled=false&searchButtonEnabled=false&backgroundColor=%23222222

然后,我想将该 URL 内容加载到 DIV 中:

$("#inner").load('http://issuu.com/press/docs/2008-12?mode=window&printButtonEnabled=false&shareButtonEnabled=false&searchButtonEnabled=false&backgroundColor=%23222222');

服务器返回 200 状态(OK),但是 FireBug 将该请求标记为红色:

enter image description here

该 DIV 内没有任何显示。为什么?

编辑

如果我将请求更改为 Post,也会失败:

$.post('http://issuu.com/press/docs/2008-12?mode=window&printButtonEnabled=false&shareButtonEnabled=false&searchButtonEnabled=false&backgroundColor=%23222222',{},
function(res){ $("#inner").html(res);});

最佳答案

浏览器不允许跨域 AJAX 调用。

你可以使用 iframe 吗?

关于jQuery Load 函数不加载 URL 结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9227745/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com