ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` //设置 plus.storage.setItem('键','值'); -> plus.storage.setItem('name','dongyixueyuan'); //查询 plus.storage.getItem('键'); -> var name = plus.storage.getItem('name'); //删除 plus.storage.removeItem('键'); -> plus.storage.removeItem('name'); //全部清除 plus.storage.clear(); //HTML5自带 - 设置 localStorage.setItem('键','值'); -> localStorage.setItem('name','dongyixueyuan'); //HTML5自带 - 查询 localStorage.getItem('键'); -> var name = localStorage.setItem('name'); //HTML5自带 - 删除 localStorage.removeItem('键'); -> localStorage.removeItem('name'); ```