bug如下:
localStorage.setItem('teststr','123123');
localStorage.getItem('teststr'); // 123123
localStorage.setItem('testobj',JSON.stringify({a:"123"}));
localStorage.getItem('testobj'); // undefined
bug如下:
localStorage.setItem('teststr','123123');
localStorage.getItem('teststr'); // 123123
localStorage.setItem('testobj',JSON.stringify({a:"123"}));
localStorage.getItem('testobj'); // undefined
1 个回复
陈晨1
localStorage.setItem('testobj',JSON.stringify({'a':"123"}))