zoukankan      html  css  js  c++  java
  • layui的时间在table表格里面弹窗闪退

    //方法级渲染
    table.render({
    elem: '#LAY_table_user'
    , url: '../data/page.json'
    , cols: [[
    {field: 'ddid', title: '订单号', '10%'}

    , {field: 'cpm', title: '产品名', "6%" ,edit:'text',style:'color:#0af'}

    , {field: 'pzxx', title: '配置信息', "6%", templet: "#pzxx"}
    , {field: 'fkje', title: '付款金额', "7%", sort: "true"}
    , {field: 'username', title: '用户名', "5%"}
    , {field: 'QQ', title: '用户QQ', "7%", sort: "true"}
    , {field: 'ip', title: 'IP', "17%"}
    , {field: 'xt', title: '系统', "7%"}

    , {field: 'retime', title: '开始时间', "9%", templet: "#firsttime"}
    , {field: 'lotime', title: '到期时间', "9%", templet: "#lasttime"}

    , {field: 'kefu', title: '客服', "8%", templet: "#barkefu"}

    , {field: 'state', title: '状态', "5%"}
    , {field: 'right', fixed: "right", title: '操作', "8%", align: 'center', toolbar: "#barDemo"}

    ]]
    , id: 'testReload'
    , page: true
    , height: 500
    , skin: 'line'
    ,done:function () {
    //时间选择

    lay('.starttime').each(function(){
    laydate.render({
    elem: this
    , trigger: 'click'
    ,done:function (value,data1) {
    layer.alert('你选择的日期是:' + value + '<br>' + JSON.stringify(data1));
    }
    });
    });
    lay('.endtime').each(function(){
    laydate.render({
    elem: this
    , trigger: 'click'
    ,done:function (value,data2) {
    layer.alert('你选择的日期是:' + value + '<br>' + JSON.stringify(data2));
    }
    });
    });
    }
    });
  • 相关阅读:
    python数据类型
    集合(set)内置方法
    python第三天
    剑指offer-什么是1G/2G/3G/4G/5G
    经典交换实验-二层交换机实现pc隔离&vlan通信
    linux运维神器-htop&mtr
    三分钟速学linux-进程管理命令
    三分钟速学文件权限管理
    三分钟速学网卡管理配置-nmcli命令
    三分钟速学linux-centos/redhat常见包管理器
  • 原文地址:https://www.cnblogs.com/shenbo666/p/9504610.html
Copyright © 2011-2022 走看看