我看过很多例子,我似乎无法弄清楚我在这里做错了什么:
var names_Array = [];
var names_List = new WinJS.Binding.List(names_Array);
names_List.push({ name: "Joe Dowling", image: "image/Joe Dowling.png", ClientID: "1234" });
window.localStorage.setItem('names_Array', JSON.stringify(names_Array));
var test = JSON.parse(window.localStorage.getItem('names_Array'));
console.log(test.name);
我在控制台中未定义,为什么会发生?