Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在建立一个网站,并依靠 php fetch_content 来读取文件(http://opi.yahoo.com/online?u=yahoooid&m=a&t=1),它返回 00 表示离线,01 表示在线。不知何故,我移动了我的主机,新主机无法执行 php_fetch_content,jQuery 有什么办法可以做到这一点吗?我已经尝试过 .get() 并且真的不知道它的工作原理,所以它结果不工作。任何帮助将不胜感激!
不,由于同源策略限制,您不能使用 AJAX ,除非服务器支持JSONP。