保存
uni.setStorage({
key: 'amount',
data: this.amount
});
读取
// 取出上个页面存储的数据
this.amount = uni.getStorageSync('amount');
保存
uni.setStorage({
key: 'amount',
data: this.amount
});
读取
// 取出上个页面存储的数据
this.amount = uni.getStorageSync('amount');