未验证 提交 bfb9d186 编写于 作者: O openharmony_ci 提交者: Gitee

!10565 翻译完成:10304 Fix code specification issues (仅涉及代码修改)

Merge pull request !10565 from wusongqing/TR10304
...@@ -14,9 +14,9 @@ The mission snapshot information can be obtained by using **getMissionSnapShot** ...@@ -14,9 +14,9 @@ The mission snapshot information can be obtained by using **getMissionSnapShot**
```js ```js
import ElementName from '@ohos.bundle'; import ElementName from '@ohos.bundle';
import image from '@ohos.multimedia.image'; import image from '@ohos.multimedia.image';
import missionManager from '@ohos.application.missionManager' import missionManager from '@ohos.application.missionManager';
missionManager.getMissionInfos("", 10, (error, missions) => { missionManager.getMissionInfos("", 10, (error, missions) => {
console.log("getMissionInfos is called, error.code = " + error.code); console.log("getMissionInfos is called, error.code = " + error.code);
console.log("size = " + missions.length); console.log("size = " + missions.length);
console.log("missions = " + JSON.stringify(missions)); console.log("missions = " + JSON.stringify(missions));
...@@ -26,7 +26,7 @@ import missionManager from '@ohos.application.missionManager' ...@@ -26,7 +26,7 @@ import missionManager from '@ohos.application.missionManager'
console.log("getMissionSnapShot is called, error.code = " + error.code); console.log("getMissionSnapShot is called, error.code = " + error.code);
console.log("bundleName = " + snapshot.ability.bundleName); console.log("bundleName = " + snapshot.ability.bundleName);
}) })
}) })
``` ```
## MissionSnapshot ## MissionSnapshot
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册