uni-app错误: unexpected attribute name, near `externa...【我使用了关键词externalDisableButton】

这个问题在H5是不会出现的,但是在uin-app框架 你的Props属性名称不能使用external关键字名称,否则就会报错误…【我使用了externalDisableButton 或 disableButtonExternal】

# 【非常重要】这里的属性名称任意位置不能包含external关键字名称的属性,否则就会报此异常!
externalDisabledTransferButton: {
                type: Boolean,
                default: false,
            },

0:32:43.343 TypeError: $gwx is not a function
10:32:43.363 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:115:27 at uniapp://ready:182
10:32:43.393 webviewScriptError
10:32:43.423 $gwx is not a function
10:32:43.453 TypeError: $gwx is not a function
10:32:43.475 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:115:27 at uniapp://ready:182
10:32:43.505 Uncaught TypeError: $gwx is not a function at app-view.js:115
10:32:44.084 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->TypeError: $gwx is not a function. (In '$gwx('./app.wxml')', '$gwx' is undefined)
10:32:44.104 getTemplateInfo== template md5 d5e19d8d5ae6682447124129720df315 length 11747788 base64 md5 1eGdjVrmaCRHEkEpcg3zFQ== response header {"templateSourceBase64MD5":["1eGdjVrmaCRHEkEpcg3zFQ=="],"templateSourceMD5":["d5e19d8d5ae6682447124129720df315"]}
10:33:22.320 [错误] ./pages/login.wxml:1:852: unexpected attribute name, near `externa...`
10:33:22.320 [错误] ./pages/login.wxml:1:852: unexpected attribute name, near `externa...`
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值