layui的时间在table表格里面弹窗闪退

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

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

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

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

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

, {field: 'state', title: '状态', width: "5%"}
, {field: 'right', fixed: "right", title: '操作', width: "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));
}
});
});
}
});
posted @   小猴子会上树  阅读(833)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示