layui的select不显示


<select name="choice" lay-filter="choice">
<option value="">请选择</option>
<option value="year" title="查看某年数据">年份选择</option>
<option value="month" title="查看某月数据">年月选择</option>
</select>

解决办法

layui.use(['apexcharts','jquery', 'laydate', 'febs', 'form', 'eleTree', 'validate','transfer','layer','util'], function () {
        var $ = layui.jquery,
            laydate = layui.laydate,
            layer = layui.layer,
            febs = layui.febs,
            util = layui.util,
            form = layui.form,//这一句
            eleTree = layui.eleTree,
            validate = layui.validate,
            $view = $('#paper-chart');
        form.render();//添加这一句

添加

  form 

  form = layui.form,

  form.render();

posted on 2020-03-16 15:50  王行行  阅读(2974)  评论(0编辑  收藏  举报

导航