标签:art each detail form trigger nbsp star 链接 laydate
1、出现问题的代码
laydate.render({ elem: ‘#startDate‘ // }); laydate.render({ elem: ‘#endDate‘ // }); laydate.render({ elem: ‘#finishDate‘ // });
后来经过查询发现解决办法
//同时绑定多个 lay(‘.test-item‘).each(function(){ laydate.render({ elem: this ,format:‘yyyy-MM-dd HH:mm:ss‘ ,type:‘datetime‘ ,trigger: ‘click‘ }); }); 原文链接:https://blog.csdn.net/qq_37837029/article/details/88836404
或者 一个一个加 trigger: ‘click‘
laydate.render({ elem: ‘#startDate‘ // ,trigger: ‘click‘ }); laydate.render({ elem: ‘#endDate‘ // ,trigger: ‘click‘ }); laydate.render({ elem: ‘#finishDate‘ // ,trigger: ‘click‘ });
标签:art each detail form trigger nbsp star 链接 laydate
原文地址:https://www.cnblogs.com/fallIntoTheStars/p/11956793.html