请问一下layui中富文本如何异步取值。
layui.use('layedit', function(){
let introduce = layui.layedit ;
let content = introduce.build('introduce',{
hideTool:['face'],
introduce.getContent(content);
introduce.sync(content)
});
异步提交代码
$('button[type=submit]').click(function(){
let form = $(this).parents('form');
let data = form.serializeArray();
let method = form.attr('method');
let action = form.attr('action');
$.ajax({
url : action,
type : method || 'get',
data : data,
success(res)
{
cosole.log(res)
})
});
这种方式提交总是无法获取textarea的值