From 8a8788592128efd57be88f1ef5ad2986d741fc37 Mon Sep 17 00:00:00 2001 From: satori Date: Thu, 5 Sep 2024 12:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.js b/main.js index 13300f3..f591467 100644 --- a/main.js +++ b/main.js @@ -14,7 +14,7 @@ export function createElement({ innerText, innerHTML, textContent, readOnly, chi if (children) children.forEach(child => element.appendChild(child)) // 生成样式 - if (names.length) console.log('names:', names) + //if (names.length) console.log(names) // 分解类名, 生成样式, 直接将样式赋予元素 names.map(name => name.split('_')).forEach(item => { @@ -153,7 +153,6 @@ export class BaseElement { return createElement({ innerHTML: html }, this.name) } static childs(childs, __name, names) { - console.log('childs:', __name, names) return createElement({ children: childs }, __name, names) } static w(width, __name, names) {