1
如何更改/修改/刷新我的AngularJS的localstorage
?AngularJS set localstorage(object json)
我localstorage
內容是object
JSON:
//data content: {Id:1,Name:"Juanito"}
localStorageService.set("MyObj",data);
console.log(localStorageService.get("MyObj"));
//SHOW object JSON {Id:1,Name:"Juanito"}
但如果我修改這樣一個獨特的密鑰:
localStorageService.set("MyObj.Id","otherid"),
它不工作。我該如何解決?
您好,感謝您的答覆! – DevPHP
你好!感謝您的答覆! 我認爲設置直接localstorage ...但你的迴應很簡單,我幫助,非常感謝你! – DevPHP