layui 动态添加select不显示

需要render 一下,重新渲染

$("#add").click(function() {
          $("#aaa").append(tr);
          form.render('select')             
        })

在这里插入图片描述
https://www.layui.com/doc/modules/form.html

猜你喜欢

转载自blog.csdn.net/weixin_40206441/article/details/88744427