Layui xm-select 下拉多选组件

chenvle 2020-07-06 PM 2878℃ 0条

组件效果

1.png

Html代码

<div id="demo1" class="xm-select-demo"></div>

JS代码

<script src="xm-select.js" type="text/javascript"></script>//引入下面的组件JS
<script>
  var demo1 = xmSelect.render({
    el: '#demo1', 
      data: [
          {name: '张三', value: 1},
          {name: '李四', value: 2},
          {name: '王五', value: 3},
      ]
})
</script>

组件JS(xm-select.js 引入即可)

点击打开


转载来自:https://maplemei.gitee.io/xm-select/

评论啦~