onLoad: function (options){
// 显示loading提示框
wx.showLoading({
title: '图片加载中……',
})
// 获取页面跳转时携带的数据
var imageurl=options.imageurl
var title=options.title
this.setData({
receiveimageurl:imageurl,
receivetitle:title
})
// 隐藏loading提示框
wx.hideLoading()
为点击图片(文字)打开新页面设置了加载提示框,设置wx.showLoading后提示框不消失,在最后面加wx.hideLoading()后提示框又不显示了,请问怎么加参数,设置退出的时机

this.setData({ receiveimageurl:imageurl, receivetitle:title }, () => wx.hideLoading())<image src="xxx" bindload="onMonitor" /> onMonitor(e) { this.setData({ hideLoading: true // 隐藏图片提示 }) }感谢各位的解疑释惑,图片加载时提示-加载成功后隐藏提示框功能实现,完整代码如下(image标签中加了bindload="……" ,名称自定义与js中的一致就行)