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) {