diff --git a/docs/uts/literal.md b/docs/uts/literal.md index ba86dfd7387fd5fad37f8b7b07001104b2e8c62e..0148146c942f49e9332a7c3de30e515d62ccc036 100644 --- a/docs/uts/literal.md +++ b/docs/uts/literal.md @@ -197,8 +197,8 @@ type User = { function printUser(user: User){ console.log(user) } -printUser({name: 'DCloud',age: 12} as User) // 通过对象字面量 as User 构造一个 type 定义的 User 对象 -printUser({name: 'DCloud',age: 12}) // 从 HBuilderX 4.31+ 起,无需手动 as User +printUser({name: 'zhangsan',age: 12} as User) // 通过对象字面量 as User 构造一个 type 定义的 User 对象 +printUser({name: 'zhangsan',age: 12}) // 从 HBuilderX 4.31+ 起,无需手动 as User ```