text() --> html()

master
就眠儀式 2021-07-08 02:35:17 +00:00 committed by Gitee
parent 522e6d20d7
commit 2ddeba6443
1 changed files with 1 additions and 1 deletions

View File

@ -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("<i class='layui-anim layui-anim-rotate layui-icon layui-anim-loop layui-icon-loading'/>");