From f2689c71263f669978eaadbf9aa2b17165515122 Mon Sep 17 00:00:00 2001 From: yangtao Date: Fri, 4 Jun 2021 14:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8F=90pr,=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=BE=AA=E7=8E=AF=20=E7=9B=B4=E6=8E=A5push=20val=20?= =?UTF-8?q?=E5=B0=B1=E4=B8=8D=E7=94=A8=E6=88=AA=E5=8F=96=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- der.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/der.js b/der.js index 74570de..2ab829d 100644 --- a/der.js +++ b/der.js @@ -14,6 +14,7 @@ function tokenizer(input) { } else { type = 'tagstart' } + continue; } if (ch === '>') { push() type = "text" @@ -29,8 +30,8 @@ function tokenizer(input) { function push() { if (val) { - if (type === "tagstart") val = val.slice(1) //
div - if (type === "tagend") val = val.slice(2) //
div + // if (type === "tagstart") val = val.slice(1) //
div + // if (type === "tagend") val = val.slice(2) //
div tokens.push({ type, val