toast组件使用问题:无法读取属性showToast #1236
-
// 使用lin-ui封装一个toast方法
const commonToast = (title, icon) => {
wx.lin.showToast({
title: title,
icon: icon,
success: (res) => {
console.log(res)
},
complete: (res) => {
console.log(res)
}
})
} 在调用的时候报如下错误: |
Beta Was this translation helpful? Give feedback.
Answered by
junxian123
Dec 31, 2020
Replies: 1 comment
-
页面使用了toast组件吗?要使用才可以 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
juzi214032
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
页面使用了toast组件吗?要使用才可以