From f4f113e9953472c6a77beca70ee72313ccd80282 Mon Sep 17 00:00:00 2001 From: wx Date: Fri, 4 Jul 2025 03:57:30 +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 aef2db61cdf..1ac43e90559 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'; @@ -323,7 +323,7 @@ class TestA { static prop1: number = 0; } TestA.prop1; ```ts // 混淆前: if (flag) { - console.log("hello"); + console.info("hello"); } ``` @@ -339,7 +339,7 @@ if (flag) { 例如: ```js - console.log("in tolevel"); + console.info("in tolevel"); ``` 2. 代码块中的调用 @@ -347,7 +347,7 @@ if (flag) { ```ts function foo() { - console.log('in block'); + console.info('in block'); } ``` @@ -356,7 +356,7 @@ if (flag) { ```ts namespace ns { - console.log('in ns'); + console.info('in ns'); } ``` @@ -366,10 +366,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