From 2ddeba644332acce976e261be33e0e866ad052a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Thu, 8 Jul 2021 02:35:17 +0000 Subject: [PATCH] text() --> html() --- component/pear/module/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/pear/module/button.js b/component/pear/module/button.js index 64d0459..d77c18d 100644 --- a/component/pear/module/button.js +++ b/component/pear/module/button.js @@ -21,7 +21,7 @@ layui.define(['jquery'], function(exports) { time: opt.time ? opt.time : false, done: opt.done ? opt.done : function(){} } - var text = $(option.elem).text(); + var text = $(option.elem).html(); $(option.elem).html("");