我从backbone.js 中拉出一个对象,当我对对象进行字符串化时,我看到字符串文字
'[{"Name":"Testname","Address":"Testaddress","id":"444444444444444"}]'
但是,当我将非序列化对象分配给变量并尝试访问第 0 个元素时,我得到未定义。我希望得到对象
{"Name":"Testname","Address":"Testaddress","id":"444444444444444"}
JavaScript 不处理
[{"Name":"Testname","Address":"Testaddress","id":"444444444444444"}]
作为对象的索引数组?