pt>
<script>
    layui.use(['form', 'table', 'laydate'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table,
            laydate = layui.laydate;
        //日期范围
        var time_range
        laydate.render({
            elem: '#time'
            , range: true
            , done: function (value) {
                return time_range = value
            }
        });
        // 初始化表格
        table.render({
            elem: '#currentTab