layui.use(['customSelect'], function() {
    const select = layui.customSelect
    select.render({
        el: 'searchBox',
        data: list,
        checkbox: true,
        checked: function (obj) {
            console.log(obj)
           //obj.value 已選數(shù)據(jù)的title
           //obj.data 已選數(shù)據(jù)
        }
    })
})                        更多請移步至碼云 https://gitee.com/jinxin911821/customSelect 該擴展組件由第三方用戶主動投遞,并由其自身進行維護,本站僅做收集。