我正在尝试使用 JSONP 和 MooTools 构建自定义 StackOverflow 徽章。这是代码:
new Request.JSONP('http://stackoverflow.com/users/flair/166325.json', {
onComplete: function(data) {
console.log(data);
}
}).request();
但是,我总是会收到此消息:
RequestJSONPrequest_maprequest_0 is not defined
我想知道这是否是来自 StackOverflow 的响应的问题,因为使用 JSONP 对其他服务的请求对我来说工作正常。