时间:2021-07-01 10:21:17 帮助过:18人阅读
日期插件初始化: $('.prelease_time').flatpickr();
let contentSteps = $("#content_form").steps({ headerTag: "h3", bodyTag: "section", transitionEffect: "slideLeft", enableAllSteps: true, enablePagination: true, onStepChanging: function(event, currentIndex, newIndex) { console.log(11) return true; }, onStepChanged: function(event, currentIndex, priorIndex) { console.log(22) return false; }, onFinishing: function(event, currentIndex) { console.log(33) return true; }, onFinished: function(event, currentIndex) { console.log(44) return false; } });
他们在渲染顺序上有区别,比如,jquery-steps是会重新渲染一遍DOM,此时需要再初始化datepicker即可
以上就是如何解决时间插件datepicker(jQuery-UI,bootstrap)和jquery-steps的冲突的详细内容,更多请关注Gxl网其它相关文章!