时间插件datepicker(jQuery-UI,bootstrap)和jquery-steps的冲突解决。。。

日期插件初始化:  $('.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()
return true;
},
onStepChanged: function(event, currentIndex, priorIndex) {
console.log()
return false;
},
onFinishing: function(event, currentIndex) {
console.log()
return true;
},
onFinished: function(event, currentIndex) {
console.log()
return false;
}
});

他们在渲染顺序上有区别,比如,jquery-steps是会重新渲染一遍DOM,此时需要再初始化datepicker即可

上一篇:HTTP和GET/POST请求(NSURLConnection)


下一篇:2463: [中山市选2009]谁能赢呢?- BZOJ