提交 b920b9ed 编写于 作者: J junyi233

fix 示例代码

Signed-off-by: Njunyi233 <zhengjun29@huawei.com>
上级 2a55de5d
...@@ -100,8 +100,8 @@ var appId = "com.example.myapplication_xxxxx"; ...@@ -100,8 +100,8 @@ var appId = "com.example.myapplication_xxxxx";
var want = {bundleName: 'com.example.myapplication'}; var want = {bundleName: 'com.example.myapplication'};
try { try {
appControl.setDisposedStatus(appId, want, (err, data) => { appControl.setDisposedStatus(appId, want, (error, data) => {
if (err) { if (error) {
console.error('setDisposedStatus failed ' + error.message); console.error('setDisposedStatus failed ' + error.message);
return; return;
} }
...@@ -194,8 +194,8 @@ getDisposedStatus(appId: string, callback: AsyncCallback\<Want>): void; ...@@ -194,8 +194,8 @@ getDisposedStatus(appId: string, callback: AsyncCallback\<Want>): void;
var appId = "com.example.myapplication_xxxxx"; var appId = "com.example.myapplication_xxxxx";
try { try {
appControl.getDisposedStatus(appId, (err, data) => { appControl.getDisposedStatus(appId, (error, data) => {
if (err) { if (error) {
console.error('getDisposedStatus failed ' + error.message); console.error('getDisposedStatus failed ' + error.message);
return; return;
} }
...@@ -287,8 +287,8 @@ deleteDisposedStatus(appId: string, callback: AsyncCallback\<void>) : void ...@@ -287,8 +287,8 @@ deleteDisposedStatus(appId: string, callback: AsyncCallback\<void>) : void
```ts ```ts
var appId = "com.example.myapplication_xxxxx"; var appId = "com.example.myapplication_xxxxx";
try { try {
appControl.deleteDisposedStatus(appId, (err, data) => { appControl.deleteDisposedStatus(appId, (error, data) => {
if (err) { if (error) {
console.error('deleteDisposedStatus failed ' + error.message); console.error('deleteDisposedStatus failed ' + error.message);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册