layui的数据表格问题

图片描述

取不到绑定在表记录上的data对象。
为什么点击在营复选框的按钮,回调的是form.on函数,而不是table.on?

和table经过渲染有关系吗?

            //监听表格复选框选择
            table.on('checkbox(check_is_business)', function(obj){
                console.log(obj)
            });
            form.on('checkbox(check_is_business)', function(obj){
                selectedStore = new Vue({
                    el: '#div_add_store',
                    data: {
                        company_id:"",
                        store_name: "",
                        store_manager: "",
                        address: "",
                        is_business: true
                    }
                });
                var selectRecord = $(this);
                selectedStore.$data = obj.data;
                updateStore(selectedStore);
            });
阅读 2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题