diff --git a/zh-cn/application-dev/arkts-utils/bytecode-obfuscation.md b/zh-cn/application-dev/arkts-utils/bytecode-obfuscation.md index f6beba7433c3600ac14b295554a1f12269762bc5..b8b471d41947a3e8de589044028f704e2a7e728d 100644 --- a/zh-cn/application-dev/arkts-utils/bytecode-obfuscation.md +++ b/zh-cn/application-dev/arkts-utils/bytecode-obfuscation.md @@ -47,7 +47,7 @@ class A2 { prop1: string = ''; } function test(input: A1) { - console.log(input.prop1); + console.info(input.prop1); } let a2 = new A2(); a2.prop1 = 'prop a2'; @@ -63,7 +63,7 @@ class A2 { a: string = ''; } function test(input: A1) { - console.log(input.prop1); + console.info(input.prop1); } let a2 = new A2(); a2.a = 'prop a2'; @@ -324,7 +324,7 @@ class TestA { static prop1: number = 0; } TestA.prop1; ```ts // 混淆前: if (flag) { - console.log("hello"); + console.info("hello"); } ``` @@ -340,7 +340,7 @@ if (flag) { 例如: ```js - console.log("in tolevel"); + console.info("in tolevel"); ``` 2. 代码块中的调用 @@ -348,7 +348,7 @@ if (flag) { ```ts function foo() { - console.log('in block'); + console.info('in block'); } ``` @@ -357,7 +357,7 @@ if (flag) { ```ts namespace ns { - console.log('in ns'); + console.info('in ns'); } ``` @@ -367,10 +367,10 @@ if (flag) { ```js switch (value) { case 1: - console.log("in switch case"); + console.info("in switch case"); break; default: - console.warn("default"); + console.info("default"); } ```