【发布时间】:2019-09-22 11:56:36
【问题描述】:
例如:
{
"123": [
...stuff
]
}
如何在 jquery 中调用“123”而不返回错误?
我试过了:
$.getJSON('insert-url-here').then(function (data) {
console.log(data.123.length)
}
但它不起作用。
【问题讨论】:
标签: javascript jquery arrays json object