提交 f8a18f87 编写于 作者: Z zhongjianfei

fix docs bugs for featureAbility

Signed-off-by: Nzhongjianfei <zhongjianfei@huawei.com>
Change-Id: I8012778552e312257cc892303247e968b4105eea
上级 065ca37e
......@@ -518,7 +518,7 @@ getCacheDir(callback: AsyncCallback\<string>): void
```js
import featureAbility from '@ohos.ability.featureAbility'
var context = featureAbility.getCacheDir();
var context = featureAbility.getContext();
context.getCacheDir((err, data) => {
if (err) {
console.error('Operation failed. Cause: ' + JSON.stringify(err));
......@@ -571,7 +571,7 @@ getFilesDir(callback: AsyncCallback\<string>): void
```js
import featureAbility from '@ohos.ability.featureAbility'
var context = featureAbility.getFilesDir();
var context = featureAbility.getContext();
context.getFilesDir((err, data) => {
if (err) {
console.error('Operation failed. Cause: ' + JSON.stringify(err));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册