主要新增加
- layer.open 新增success function()
- each search all class and add laydate.render
- trigger:‘click’
layer.open({
type:1, shadeClose:true, maxmint:true,move:false,
title:'Please input Setting values',area:["400px","450px"],
content: $("#SceneAc-items-layui"),btn:['Save','Cancel'],
success: function(layero, index) {
lay('.lay_time').each(function(){
laydate.render({ elem: this, format:'HH:mm' ,type:'time' ,trigger: 'click' });
});
},
yes: function(layero, index){
lay_ac = $('#lay_ac').val();
lay_ac = $('#lay_ac').val();
lay_ac = $('#lay_ac').val();
lay_ac = $('#lay_ac').val();;
return ;
},
btn2: function(layero, index) {layer.closeAll();},
cancel: function(){layer.closeAll();}
});