From ad845b2f9d64e4dc643af32470c1c26ed60b0927 Mon Sep 17 00:00:00 2001 From: wx Date: Fri, 4 Jul 2025 03:55:55 +0000 Subject: [PATCH] =?UTF-8?q?update=20zh-cn/application-dev/arkts-utils/byte?= =?UTF-8?q?code-obfuscation.md.=20console.log()=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAconsole.info()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wx --- .../arkts-utils/bytecode-obfuscation.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/arkts-utils/bytecode-obfuscation.md b/zh-cn/application-dev/arkts-utils/bytecode-obfuscation.md index f6beba7433c..b8b471d4194 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"); } ``` -- Gitee