未验证 提交 47ac5fd6 编写于 作者: 1 189******51 提交者: Gitee

update zh-cn/application-dev/quick-start/atomicService-aging.md.

Signed-off-by: N189******51 <lipeicheng5@huawei.com>
上级 6e03a5ba
...@@ -17,14 +17,15 @@ ...@@ -17,14 +17,15 @@
```ts ```ts
import installer from '@ohos.bundle.installer'; import installer from '@ohos.bundle.installer';
import { BusinessError } from '@ohos.base'; import { BusinessError } from '@ohos.base';
let bundleName = 'com.ohos.demo'; let bundleName = 'com.ohos.demo';
let installParam: installer.InstallParam = { let installParam: installer.InstallParam = {
userId: 100 userId: 100
}; };
try { try {
installer.getBundleInstaller().then(data => { installer.getBundleInstaller().then((data: installer.BundleInstaller) => {
data.uninstall(bundleName, installParam, err => { data.uninstall(bundleName, installParam, (err: BusinessError) => {
if (err) { if (err) {
console.error('uninstall failed:' + err.message); console.error('uninstall failed:' + err.message);
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册