jquery-ui或bootstrap支持的時(shí)間插件datepicker在前端開(kāi)發(fā)上有很多應(yīng)用,本章給大家介紹如何解決時(shí)間插件datepicker和jquery-steps的沖突。有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)你有所幫助。
日期插件初始化: ?$('.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; } });
他們?cè)阡秩卷樞蛏嫌袇^(qū)別,比如,jquery-steps是會(huì)重新渲染一遍DOM,此時(shí)需要再初始化datepicker即可
以上就是如何解決時(shí)間插件datepicker(jQuery-UI,bootstrap)和jquery-steps的沖突的詳細(xì)內(nèi)容,更多請(qǐng)關(guān)注php中文網(wǎng)其它相關(guān)文章!
每個(gè)人都需要一臺(tái)速度更快、更穩(wěn)定的 PC。隨著時(shí)間的推移,垃圾文件、舊注冊(cè)表數(shù)據(jù)和不必要的后臺(tái)進(jìn)程會(huì)占用資源并降低性能。幸運(yùn)的是,許多工具可以讓 Windows 保持平穩(wěn)運(yùn)行。
微信掃碼
關(guān)注PHP中文網(wǎng)服務(wù)號(hào)
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://m.miracleart.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號(hào)