jQuery的进行解决layui闪退的问题
生活随笔
收集整理的這篇文章主要介紹了
jQuery的进行解决layui闪退的问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
情況:點擊第一個input 日期,可以正常選擇日期,之后點擊任何一個,都會閃一下然后消失,無法正常選擇;原因:lay-key的值的問題,需要循環重新為lay-key賦值解決:<input type="text" id="timeF1" name="timeF1" class="layui-input">
<input type="text" id="timeF2" name="timeF2" class="layui-input">
<input type="text" id="timeF3" name="timeF3" class="layui-input">var allDate = $(document).find('#checkTime');allDate.each(function (index, el) {$(this).removeAttr();laydate.render({elem: this,//解決多次打開模態框閃退問題range: true,trigger: 'click',ready: function (date) {$("#checkTime").removeAttr();$(this).attr("#checkTime", "1");}});});
?
總結
以上是生活随笔為你收集整理的jQuery的进行解决layui闪退的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么拖鞋越来越不经用,以前的穿几年都不
- 下一篇: 北上广深为何出现人口负增长现象?