所以,当我输入时,console.log(Test.globals.user)
我得到了这个:
[id: "1", first_name: "MyFirstName", last_name: "MyLastName"]
如何获取名字和姓氏的值?我试过这个:
Test.globals.user.first_name //undefined
Test.globals.user[first_name] //error - no first_name variable provided
Test.globals.user["first_name"] //undefined
谢谢你。:)