<div class="layui-form-item w100"> <label class="layui-form-label">备注</label> <div class="layui-input-block"> <textarea id="content_one" lay-verify="content_node" name="m.bid_memo" placeholder="请输入备注" ></textarea> </div> </div>
layui.define(['layer', 'form','jquery','element','layedit'], function(exports){ "use strict"; var $ = layui.jquery, element = layui.element ,layer = layui.layer ,layedit = layui.layedit ,table=layui.table ,form = layui.form layedit.set({ uploadImage: { url: '/common/layuiUpload' //接口url ,type: 'post' //默认post } }); var layeditIndex =layedit.build('content_one'); //建立编辑器 });
//jfinal public void layuiUpload(){ UploadFile uf = getFile("file"); File file = uf.getFile(); }