Why localstorage can't save ts's map

let menu = new Map<string,Menu>;
localStorage.setItem("menu", JSON.stringify(menu));

then look at the localStorage in the Application of the browser, and the corresponding value of menu is {}

.
Mar.23,2021

JSON does not support map yo

  • Angular6 this pointing to the problem

    students, I have a question to ask you. Our current project technology stack is ng6+ts,. The problem now is that there is a problem when using the ztree plug-in: ztree configuration ** * ztree * setting: any = { data:{ ...

    Apr.23,2021
Menu