From e67c3b8d226f609fa9935ddf98fbe57d21080b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=8A=E5=9B=BE=E6=B6=82?= Date: Fri, 8 Jul 2022 02:32:01 +0000 Subject: [PATCH] =?UTF-8?q?update=20zh-cn/application-dev/ui/ts-applicatio?= =?UTF-8?q?n-resource-access.md.=20=E7=A4=BA=E4=BE=8B=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E5=92=8C=E7=95=99=E7=A9=BA=E6=A0=BC=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20Signed-off-by:=20=E7=B3=8A=E5=9B=BE=E6=B6=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/ts-application-resource-access.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/ui/ts-application-resource-access.md b/zh-cn/application-dev/ui/ts-application-resource-access.md index 84997c709c..d12e3fd86f 100644 --- a/zh-cn/application-dev/ui/ts-application-resource-access.md +++ b/zh-cn/application-dev/ui/ts-application-resource-access.md @@ -146,21 +146,21 @@ Text($r('app.string.string_world')) .fontSize($r('app.float.font_world')) } -Text($r('app.string.message_arrive', "five of the clock")) //引用string资源,$r的第二个参数用于替换%s +Text($r('app.string.message_arrive', "five of the clock")) // 引用string资源,$r的第二个参数用于替换%s .fontColor($r('app.color.color_hello')) .fontSize($r('app.float.font_hello')) } -Text($r('app.plural.eat_apple', 5, 5)) //plural$r引用,第一个指定plural资源,第二个参数指定单复数的数量,此处第三个数字为对%d的替换 +Text($r('app.plural.eat_apple', 5, 5)) // plural$r引用,第一个指定plural资源,第二个参数指定单复数的数量,此处第三个数字为对%d的替换 .fontColor($r('app.color.color_world')) .fontSize($r('app.float.font_world')) } -Image($r('app.media.my_background_image')) //media资源的$r引用 +Image($r('app.media.my_background_image')) // media资源的$r引用 -Image($rawfile('test.png')) //rawfile$r引用rawfile目录下图片 +Image($rawfile('test.png')) // rawfile$r引用rawfile目录下图片 -Image($rawfile('newDir/newTest.png')) //rawfile$r引用rawfile目录下图片 +Image($rawfile('newDir/newTest.png')) // rawfile$r引用rawfile目录下图片 ``` -- GitLab