Jquery 我没有得到json数据,它的抛出错误…有人能建议吗
返回的JSON数据为:Jquery 我没有得到json数据,它的抛出错误…有人能建议吗,jquery,json,ajax,Jquery,Json,Ajax,返回的JSON数据为: $.ajax({ type: "GET", dataType: "json", url:"https://www.formstack.com/api/v2/form/2288422/notification.json?oauth_token=88d99cf491d4a77576c2d151ab26a293", error: function (XMLHttpRequest, textStatus, errorThrown) {
$.ajax({
type: "GET",
dataType: "json",
url:"https://www.formstack.com/api/v2/form/2288422/notification.json?oauth_token=88d99cf491d4a77576c2d151ab26a293",
error: function (XMLHttpRequest, textStatus, errorThrown) {
console.log(XMLHttpRequest, textStatus, errorThrown)
},
success: function (result) {
console.log(result)
}
});
例如,通过使用
结果访问“id”。通知[0]。id
是否愿意共享抛出的错误以及它与C#的关系?它用于错误块并显示警报,而不是成功块。数百种情况可能会导致错误消息,然而,如果我们知道实际的信息是什么,我们也许可以为您缩小范围。您收到的确切错误是什么?您可以在Google Chrome(或等效浏览器)的开发者控制台中检查此项。请从指定的url获取JSON数据。
$.ajax({
type: "GET",
dataType: "json",
url:"https://www.formstack.com/api/v2/form/2288422/notification.json?oauth_token=88d99cf491d4a77576c2d151ab26a293",
error: function (XMLHttpRequest, textStatus, errorThrown) {
console.log(XMLHttpRequest, textStatus, errorThrown)
},
success: function (result) {
console.log(result)
}
});
{
notifications: [{
_retries: 0,
attach_limit: "0",
editor: "wysiwyg",
form: "2288422",
format: "html",
hide_empty: "0",
id: "4125434",
name: "Notification Email",
recipients: "xxxxxxxx@gmail.com",
show_section: "0",
subject: "",
table: "notificationEmail",
type: "data"
}]
}