未验证 提交 293b44cf 编写于 作者: D donglin 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationStateObserver.md.

Signed-off-by: Ndonglin <donglin9@huawei.com>
上级 2b249665
...@@ -43,5 +43,5 @@ let applicationStateObserver = { ...@@ -43,5 +43,5 @@ let applicationStateObserver = {
console.log('onProcessStateChanged onProcessStateChanged: ${JSON.stringify(processData)}'); console.log('onProcessStateChanged onProcessStateChanged: ${JSON.stringify(processData)}');
} }
}; };
let observerCode = appManager.registerApplicationStateObserver(applicationStateObserver); let observerCode = appManager.on('applicationState', applicationStateObserver);
``` ```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册