dcloudio / dcloudio/uni-app

复杂差值表达式/自定义属性小程序报错

Open
#2,337 0 comments 0 reactions 0 assignees View on GitHub
h5 提供了复现方案
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

h5 浏览器 开发环境 正常,微信小程序 开发环境 报错
``
`{{ (item.status || {}).Str }}`
报错如下
[ WXML 文件编译错误] ./pages/xxx.wxml
Bad attr `text` with message

暂时改为不报错写法
`{{ item.status.Str }}`

`{{ item.status && item.status.Str }}`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.