未验证 提交 3d6b39a4 编写于 作者: O openharmony_ci 提交者: Gitee

!7700 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】$引用字符串环境错误

Merge pull request !7700 from 邓辉/master
...@@ -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.
先完成此消息的编辑!
想要评论请 注册