当前位置:网站首页>微信小程序报错:TypeError: Cannot read property ‘setData‘ of undefined
微信小程序报错:TypeError: Cannot read property ‘setData‘ of undefined
2022-06-30 12:24:00 【开开开心果儿】
报错信息如下:
源代码:(写弹窗时选择了自动补全代码,使用了生成的success导致错误)
wx.showModal({
title: '温馨提示',
content: '您确定要下架' + '"' + e.currentTarget.dataset.name + '"' + '吗?',
success: function (res) {
//xxxxxxx
}
})
解决方法:
success: function (res) {
//xxxxxxx
}
改为:
success:res=>{
//xxxxxxx
}
边栏推荐
猜你喜欢

MATLAB小技巧(22)矩阵分析--逐步回归
![[qnx hypervisor 2.2 user manual]6.2.3 communication between guest and external](/img/ca/9065325ce8882d95fb24c82fb62abc.png)
[qnx hypervisor 2.2 user manual]6.2.3 communication between guest and external

Flinksql customizes udatf to implement topn

独立站即web3.0,国家“十四五“规划要求企业建数字化网站!

【一天学awk】正则匹配

FlinkSQL自定义UDAF使用的三种方式

Visual Studio配置Qt并通过NSIS实现项目打包

问卷星问卷抓包分析
![[one day learning awk] array usage](/img/75/4333452142a3c7325e0712f3306985.png)
[one day learning awk] array usage

How to select an OLAP database engine?
随机推荐
Tencent two sides: @bean and @component are used on the same class. What happens?
江西财经大学智慧江财登录分析
Qt读写Excel--QXlsx工作表显示/隐藏状态设置4
Package based on thinkphp5 -tronapi- wave field interface - source code without encryption - can be opened twice - interface document attached - detailed guidance of the author - June 30, 2022 08:45:2
How to use AI technology to optimize the independent station customer service system? Listen to the experts!
Redis - problèmes de cache
Double dqn notes
Substrate 源码追新导读: Call调用索引化, 存储层事物化全面完成
杭州电子商务研究院:官网(网站)是私域的唯一形态
Dataworks synchronizes maxcomputer to sqlserver. Chinese characters become garbled. How can I solve it
Introduction to the novelty of substrate source code: comprehensive update of Boca system Boca weight calculation, optimization and adjustment of governance version 2.0
Three ways for flinksql to customize udaf
Tronapi-波场接口-PHP版本--附接口文档-基于ThinkPHP5封装-源码无加密-可二开-作者详细指导-2022年6月28日11:49:56
Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
Shell编程概述
JMeter之性能测试流程及性能测试关注点
Vision based robot grasping: from object localization, object pose estimation to parallel gripper grasping estimation
市值蒸发650亿后,“口罩大王”稳健医疗,盯上了安全套
SuperMap iclient3d for webgl loading TMS tiles
[QNX Hypervisor 2.2用户手册]6.2.3 Guest与外部之间通信