layui.use('layedit', function(){ var layedit = layui.layedit; }); var layedit = layui.layedit; var index = layedit.build('demo'); //創建編輯器 layedit.setContent(index,"") //清除編輯器內容