账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    小程秀里面的一段代码的code
    77
    0
    module.exports = {
        showToast: function(n) {
            return new Promise(function(o, t) {
                wx.showToast({
                    title: n.title,
                    icon: n.icon || "none",
                    image: n.image,
                    duration: n.duration || 2e3,
                    mask: n.mask || !1,code
                    success: function() {
                        o();
                    },
                    fail: function() {
                        t();
                    }
                });
            });
        },
        showLoading: function(n) {
            return new Promise(function(o, t) {
                wx.showLoading({
                    title: n.title,
                    mask: n.mask,
                    success: function() {
                        o();
                    },
                    fail: function() {
                        t();
                    }
                });
            });
        },
        hideToast: function() {
            return new Promise(function(n, o) {
                wx.hideToast(), n();
            });
        },
        hideLoading: function() {
            return new Promise(function(n, o) {
                wx.hideLoading(), n();
            });
        },
        showModal: function(n) {
            return new Promise(function(o, t) {
                wx.showModal({
                    title: n.title || "",
                    content: n.content || "",
                    showCancel: n.showCancel || !1,
                    cancelText: n.cancelText || "取消",
                    cancelColor: n.cancelColor || "#202020",
                    confirmText: n.confirmText || "确定",
                    confirmColor: n.confirmColor || "#0084ff",
                    success: function(n) {
                        o({
                            confirm: n.confirm,
                            cancel: n.cancel
                        });
                    },
                    fail: function(n) {
                        t(n);
                    }
                });
            });
        },
        showActionSheet: function(n) {
            return new Promise(function(o, t) {
                wx.showActionSheet({
                    itemList: n.itemList,
                    itemColor: n.itemColor,
                    success: function(n) {
                        o({
                            tapIndex: n.tapIndex
                        });
                    },
                    fail: function() {
                        t();
                    }
                });
            });
        }
    };
    
    
    
    在做微信小程序的时候 打开js 包看代码的时候里面有个code 关键字,找到后是在export 模块里面但是里面有个code 不知道怎么来的不知道这个语法啥意思,求人指教,谢谢
    
      就在这行代码(mask: n.mask || !1,code)
      
      请问这个是什么意思?有人知道吗?
    
    
    1
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 11 元积分
        全部回答
    • 0
    • 程实 普通会员 1楼

      很抱歉,由于您没有提供具体的代码段,我无法为您解析或提供代码。请您提供代码,我会尽力帮助您解决问题。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部