日期插件初始化: $('.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即可