JSON 属性响应未识别



这让我很疯狂...

var _my_obj = my_function(); // Connects to a server and gets data formatted as JSON.
console.log(_my_obj); // Shows me the Object and all its attributes.
console.log(_my_obj.count); // Shows me "unidentified". And I am sure "count " attribute exists.

对象

count: 10
responseJSON: {status: "ok", count: 10, count_total: 12528, pages: 1253, posts: Array(10), …}
_models_total: 12528

第一个控制台.log将变量_my_obj作为参数,而第二个控制台将未声明的变量_myobj。第二个变量是否在其他地方声明?

最新更新