wx.canIUse is not a function 还是有报错误
发布于 6 年前 作者 ping70 10668 次浏览 来自 问答

// 显示loading

function showLoading(word) {

    if (wx.canIUse(‘showLoading’)) {

        wx.showLoading({ title: word, mask: true });

    } else {

        wx.showToast({

            title: word,

            icon: ‘loading’

        });

     }

}

以上是代码

一下是报错和配置

回到顶部