From 8ec157f8d6a8acd140de8acba23f6150599c651d Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Sat, 16 Apr 2022 09:10:15 +0800 Subject: [PATCH] update doc Signed-off-by: ester.zhou --- en/application-dev/ui/ts-application-resource-access.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/application-dev/ui/ts-application-resource-access.md b/en/application-dev/ui/ts-application-resource-access.md index 05f51086ac..64e2f0be82 100644 --- a/en/application-dev/ui/ts-application-resource-access.md +++ b/en/application-dev/ui/ts-application-resource-access.md @@ -26,7 +26,7 @@ Application resources are defined in the project's resources directory, which is To reference an application resource in a project, use the ```"$r('app.type.name')"``` format. **app** indicates the resource defined in the resources directory of the application. **type** indicates the resource type (or the location where the resource is stored). The value can be color, float, string, plural, or media. **name** indicates the resource name, which you set when defining the resource. -When referencing resources in the rawfile sub-directory, use the ```"$rawfile('filename')"``` format. Currently, $rawfile allows only the **\** component to reference image resources. In the format, filename indicates the relative path of a file in the rawfile directory, and the file name must contain the file name extension. Note that the relative path cannot start with a slash (/). +When referencing resources in the **rawfile** sub-directory, use the ```"$rawfile('filename')"``` format. Currently, **$rawfile** allows only the **\** component to reference image resources. In the format, **filename** indicates the relative path of a file in the **rawfile** directory, and the file name must contain the file name extension. Note that the relative path cannot start with a slash (/). > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > Resource descriptors cannot be combined. -- GitLab