存储 要在重置前面 //请求接口成功时 wx.setStorageSync("shopInfo", res.data.name) that.setData({ ec: {//echarts重置 onInit: initChart }, }) 取值 var option = { title: { text: wx.getStorageSync('shopInfo') }, //............... }