From 4cb5d8b4145b3b0c803092758e79dda648f71010 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sun, 13 Nov 2022 14:52:44 +0800 Subject: [PATCH] opt some --- lib/date.js | 3 +++ lib/page.js | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/date.js b/lib/date.js index eccdbc98..6f77fdf2 100644 --- a/lib/date.js +++ b/lib/date.js @@ -243,3 +243,6 @@ Volcanos("date", { // @1900-2100区间内的公历转农历 '7f07e7f0e47f531b0723b0b6fb0721','7f0e26665b66a449801e9808297c35','665f67f0e37f1489801eb072297c35', '7ec967f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722'], }) +Volcanos("page", { + replace: function(can, text, key, value) { return can.base.replaceAll(text, "<", "<", ">", ">", key, value) }, +}) diff --git a/lib/page.js b/lib/page.js index a3428597..43a9f04b 100644 --- a/lib/page.js +++ b/lib/page.js @@ -188,7 +188,6 @@ Volcanos("page", {ClassList: { } return input }, - replace: function(can, text, key, value) { return can.base.replaceAll(text, "<", "<", ">", ">", key, value) }, Format: function(type) { var args = arguments; switch (type) { case html.A: return ""+(args[2]||args[1])+"" case html.IMG: return args[2]? "": ""