// 存储数据 AsyncStorage.setItem('user', 'zhangsan') .then(() => console.log('存储成功')) .catch((error) => console.log(error))

// 获取数据 AsyncStorage.getItem('user') .then((value) => console.log(value)) .catch((error) => console.log(error))


原文地址: http://www.cveoy.top/t/topic/bSiZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录