From cdb22617734af6a8f4b3e6557b7c72d002b20a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Mon, 2 Oct 2023 22:29:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=BB=84=E4=BB=B6=E4=B8=BAdi?= =?UTF-8?q?v?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/weigets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/weigets.js b/public/weigets.js index af431d6..c6f696b 100644 --- a/public/weigets.js +++ b/public/weigets.js @@ -1,4 +1,4 @@ -export function createElement({ innerText, textContent, onclick, children = [], dataset, classList = [], ...attributes }, tagName) { +export function createElement({ innerText, textContent, onclick, children = [], dataset, classList = [], ...attributes }, tagName = 'div') { const element = document.createElement(tagName) for (const key in attributes) { element.setAttribute(key, attributes[key])