我是靠谱客的博主 谦让日记本,这篇文章主要介绍图片识别不了小程序怎么办_微信小程序上传图片功能实现,现在分享给大家,希望可以做个参考。

微信小程序上传图片功能,后台asp.net

2020.09.11优化了部分功能

JS:

// 删除图片

clearImg:function(e){

var nowList = [];//新数据

var uploaderList = this.data.uploaderList;//原数据

for (let i = 0; i < uploaderList.length;i++){

if (i == e.currentTarget.dataset.index){

continue;

}else{

nowList.push(uploaderList[i])

}

}

this.setData({

uploaderNum: this.data.uploaderNum - 1,

uploaderList: nowList,

showUpload: true

})

},

//展示图片

showImg:function(e){

var that=this;

wx.previewImage({

urls: that.data.uploaderList,

current: that.data.uploaderList[e.currentTarget.dataset.index]

})

},

//选择图片

upload: function(e) { </

最后

以上就是谦让日记本最近收集整理的关于图片识别不了小程序怎么办_微信小程序上传图片功能实现的全部内容,更多相关图片识别不了小程序怎么办_微信小程序上传图片功能实现内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(148)

评论列表共有 0 条评论

立即
投稿
返回
顶部