提交 1d319bb0 编写于 作者: H huidengk

$引用字符串环境错误

Signed-off-by: Nhuidengk <huidengk@isoftstone.com>
上级 6fac251c
...@@ -128,7 +128,7 @@ TS语言的使用在生成器函数中存在一定的限制: ...@@ -128,7 +128,7 @@ TS语言的使用在生成器函数中存在一定的限制:
build() { build() {
let a: number = 1 // invalid: variable declaration not allowed let a: number = 1 // invalid: variable declaration not allowed
Column() { Column() {
Text('Hello ${this.myName.toUpperCase()}') // ok. Text(`Hello ${this.myName.toUpperCase()}`) // ok.
ForEach(this.arr.reverse(), ..., ...) // invalid: Array.reverse modifies the @State array variable in place ForEach(this.arr.reverse(), ..., ...) // invalid: Array.reverse modifies the @State array variable in place
} }
buildSpecial() // invalid: no function calls buildSpecial() // invalid: no function calls
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册