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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c27eb6-3302c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c27eb6-3302c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?