Open 2439905184 opened 3 years ago
localStorage.colorSetting = '#a4509b'; localStorage['colorSetting'] = '#a4509b'; localStorage.setItem('colorSetting', '#a4509b'); Note:强烈推荐使用Web存储API( setItem , getItem , removeItem , key , length )进行纯对象的键值操作来防止可能出现的隐患。
localStorage.colorSetting = '#a4509b'; localStorage['colorSetting'] = '#a4509b'; localStorage.setItem('colorSetting', '#a4509b'); Note:强烈推荐使用Web存储API( setItem , getItem , removeItem , key , length )进行纯对象的键值操作来防止可能出现的隐患。