diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index 87fac2670885d45b4bdb29a743e0633f429a04c4..e2db66ac13ef747d502a405acc2f1ae45ebd5b93 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -949,7 +949,7 @@ createImageSource(uri: string): ImageSource ```js //Stage模型 const context = getContext(this); -const path = context.getCacheDir() + "/test.jpg"; +const path = context.cacheDir() + "/test.jpg"; const imageSourceApi = image.createImageSource(path); ```