【发布时间】:2012-11-01 20:51:19
【问题描述】:
我正在尝试通过 jQuery 在 this tutorial 之后包含 JSON file generated by YQL 并得到以下错误:
Uncaught SyntaxError: Unexpected token ;
这是我目前尝试使用的代码:
$.ajax({
type: "GET",
url: "http://pipes.yahoo.com/pipes/pipe.run?_id=57aa32bf3481c8dca0c07afcf9b9dc29&_render=json",
async: false,
beforeSend: function(x) {
if(x && x.overrideMimeType) {
x.overrideMimeType("application/j-son;charset=UTF-8");
}
},
dataType: "json",
success: function(data){
alert("success");
}
});
我对 JSON/JQuery/JS 并不满意,但这并不是我真正的主要专业领域 ;) 。我非常感谢您提供的任何帮助。
【问题讨论】:
标签: javascript jquery yql