环境是3.6.2使用sys.localStorage.setItem保存对象,在编辑器模式下无法保存,没有看到报错,但是下次用getItem出来是空的。setItem时用了JSON.stringify转字符串的
localStorage是HTML5的window.localStorage,编辑器没有这个东西
private get save():Storage {
if (EDITOR) {
return this._chache
}
return sys.localStorage
}
自己实现一下
也就是说,只有找了H5或ANDROID包才能有正确 的效果?编辑器模式不支持存储?