给个例子
立即发布
layui.use(['form' , 'layedit'], function(){ var form = layui.form() ;
layedit = layui.layedit;
layedit.set({
uploadImage: {
url: '/topic/upload.html' //接口url ,type: 'post' //默认post }
});
index = layedit.build('content',{tool: ['strong', 'italic','underline','del','|','left','center','right','|','link','unlink','face','image','|','code']}); //建立编辑器});
其实我觉得 你应该在layui社区发帖