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("");