layer.open:
type:0,//不加会出现[object,object]的bug
content:$(“#abc”).html(),//如果不加.html()的话,成功回调日期初始化不起作用
success:function(){
laydate.render({
elem:’#def’,//日期或其他表单元素的id
...//其他参数设置
})
}
<script id=”abc” type=”text/html”>
//如果用div需加上style=”display:none;”会出现多次点击只出现遮罩层的bug
<form>...</form>
</script>