- wx.downloadFile的支持下载blob文件吗?
//h5端的代码 let url = window.URL.createObjectURL(new Blob([data]));//data:通过后端获取到的blob文件 wx.miniProgram.navigateTo({ url: `/pages/review-link/review-link?url=${encodeURIComponent(url)}` }) //微信小程序端代码 uni.downloadFile({ // 下载文件 url: this.url, success: function (res) { that.tempFilePath = res.tempFilePath let filePath = res.tempFilePath // 文件临时路径 // debugger; uni.openDocument({ // 预览文件 filePath: filePath, showMenu: true, success: function (res) { console.log(res); }, fail: function (error) { console.log(error); } }) }, fail: function (error) { console.log(error); } })
2022-08-29 - textarea光标不显示?
微信小程序textarea聚焦光标不显示,设置了auto-focus 可以聚焦,但是没有光标,座椅输入内容之后不能删除,除非清空!!! <view class="similar-desc sm_border {{faultBox.faultDescVal?'':'si-gray'}}" wx:if="{{faultBox.faultDescSimulateShow}}" bindtap="bindFaultSimulateShow">{{faultBox.faultDescVal?faultBox.faultDescVal:'故障简述'}}</view> <textarea wx:else placeholder="故障简述" class="sm_border" placeholder-style="color:#999;" maxlength="200" value="{{faultBox.faultDescVal}}" auto-focus bindinput="bindFaultDescInput" bindblur="bindFaultDescBlur" />
2019-10-16