在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:MoonScript/jQuery-ajaxTransport-XDomainRequest开源软件地址:https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest开源编程语言:JavaScript 100.0%开源软件介绍:Cross-Domain AJAX for IE8 and IE9Implements automatic Cross Origin Resource Sharing support using the
In order to use
Working example here: http://jsfiddle.net/MoonScript/Q7bVG/show/ InstructionsWith at least jQuery version 1.5, just include the jquery.xdomainrequest.min.js script into your page, then make your AJAX call like you normally would: // GET
$.getJSON('http://jsonmoon.jsapp.us/').done(function(data) {
console.log(data.name.first);
});
// POST
$.ajax({
url: 'http://frozen-woodland-5503.herokuapp.com/cors.json',
data: 'this is data being posted to the server',
contentType: 'text/plain',
type: 'POST',
dataType: 'json'
}).done(function(data) {
console.log(data.name.last);
}); CDNThis script is hosted by CDNJS: Change log
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论