后台column自定义css
cellStyle: {css: {"max-width": "200px", "overflow": "hidden","text-overflow": "ellipsis"}}

导出数据忽略某些字段
exportOptions: {fileName: '订购订单', ignoreColumn: ['userinfo.avatar']},

自定义联动查询
{
    field: 'school_id', 
    title: __('学校'), 
    searchList: function (column) {
        return Template('categorytpl', {});
    }, 
    formatter: function (value, row, index) {
        return '无';
    }, 
    visible: false,
}
<script id="categorytpl" type="text/html">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area,school,grade,class">
                <select class="province form-control" name="province" data-url="ajax/cxselect"></select>
                <select class="city form-control" name="city" data-url="ajax/cxselect" data-query-name="province_id"></select>
                <select class="area form-control" name="area" data-url="ajax/cxselect" data-query-name="city_id"></select>
                <select class="school form-control" name="school" data-url="school/cxselect" data-query-name="area_id"></select>
                <select class="grade form-control" name="grade" data-url="grade/cxselect" data-query-name="school_id"></select>
                <select class="class form-control" name="class" data-url="classmanager/cxselect" data-query-name="grade_id"></select>
                <input type="hidden" class="operate" data-name="province_id" value="=" />
                <input type="hidden" class="operate" data-name="city_id" value="=" />
                <input type="hidden" class="operate" data-name="area_id" value="=" />
                <input type="hidden" class="operate" data-name="school_id" value="=" />
                <input type="hidden" class="operate" data-name="grade_id" value="=" />
                <input type="hidden" class="operate" data-name="class_id" value="=" />
            </div>
        </div>
    </div>
</script>

Form动态规则 https://validator.niceue.com/docs/methods.html

$('form').validator("setField", "username", "required;");
// Remove the field's verification.
$('form').validator("setField", "username", null);

selectpage自定义返回字段:在Controller中定义$dataSearchFields (string)

JQuery中data的小细节:data-aa-bb => aaBb data-aaBb => aabb

JS中各种配置类数据:在控制器中使用$this->assignconfig(‘xxconfig’, $xxconfig); 方式进行注入. 在js里面可直接使用Config.xxconfig进行访问