- 微信小程序能不能创建本地文件后写入?
我要实现将数据存储为csv文件,现在想到的方案是将数据转成csv格式的字符串,然后创建.csv文件后写入。如果没办法实现这个功能的话有没有其他实现方法?
2023-08-07 - 使用setData后传输数组后wx:for无法及时渲染?
我要做一个及时渲染的表格,但是使用setData传入数据后发现wx:for没有渲染出表格的数据 [图片] [图片] //js onShow(){ this.setData({ content:app.globalData.content, getweigh:app.globalData.getweigh }) console.log(this.data.getweigh); } //wxml <view class="tr" wx:for="{{getweigh}}"> <view class="td_1">{{index+1}}</view> <view class="td">{{getweigh[index].WeighNumber}}</view> <view class="td">{{getweigh[index].CardNumber}}</view> <view class="td">{{getweigh[index].Time1+''}}</view> <view class="td">{{getweigh[index].CarNumber}}</view> <view class="td">{{getweigh[index].CabientNumber}}</view> <view class="td">{{getweigh[index].GrossWeight}}</view> <view class="td">{{getweigh[index].Tare}}</view> <view class="td">{{getweigh[index].NetWeight}}</view> <view class="td">{{getweigh[index].Business}}</view> <view class="td">{{getweigh[index].WeighMethod}}</view> <view class="td">{{getweigh[index].GoodsName}}</view> <view class="td">{{getweigh[index].Specifications}}</view> <view class="td">{{getweigh[index].ForwardUnit}}</view> <view class="td">{{getweigh[index].Consignee}}</view> <view class="td">{{getweigh[index].TransportUnit}}</view> <view class="td">{{getweigh[index].Note}}</view> <view class="td">{{getweigh[index].WeighMan}}</view> </view> 刷新一下之后才渲染出来 [图片]
2023-07-27