PHP:JewishToJD()的用法_日歷函數(shù)
715
2023-12-15
本文實例為大家分享了Jquery Easyui日歷組件的實現(xiàn)代碼,供大家參考,具體內(nèi)容如下
加載方式
Class加載
<div id="box" class="easyui-calendar" style="width:200px;height:200px;"></div>
JS調(diào)用加載
<div id="box"></div> <script> $(function () { //JS 加載調(diào)用 $('#box').calendar({ }); }); </script>
屬性列表
<script> $(function () { //JS 加載調(diào)用 $('#box').calendar({ width : 200, height : 200, fit : false, border : false, firstDay : 0, weeks : ['S','M','T','W','T','F','S'], months : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], year : 2016, month : 6, current : new Date(2016,12,17), }); }); </script>
事件列表
<script> $(function () { //JS 加載調(diào)用 $('#box').calendar({ width : 200, height : 200, onSelect : function (date) { alert(date.getFullYear() + ":" + (date.getMonth() + 1) + ":" + date.getDate()); }, onChange : function (newDate, oldDate) { alert(newDate + '|' + oldDate); }, }); }); </script>
方法列表
//返回屬性對象 console.log($('#box').calendar('options')); //調(diào)整日歷大小 $('#box').calendar('resize'); //移動到指定日期 $('#box').calendar('moveTo', new Date(2015,1,1)); //可以使用$.fn.calendar.defaults 重寫默認(rèn)值對象。
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持綠夏網(wǎng)。
#免責(zé)聲明#
本站[綠夏技術(shù)導(dǎo)航]提供的一切軟件、教程和內(nèi)容信息僅限用于學(xué)習(xí)和研究目的;不得將上述內(nèi)容用于商業(yè)或者非法用途,否則,一切后果請用戶自負(fù)。本站信息來自網(wǎng)絡(luò)收集整理,版權(quán)爭議與本站無關(guān)。您必須在下載后的24個小時之內(nèi),從您的電腦或手機(jī)中徹底刪除上述內(nèi)容。如果您喜歡該程序或內(nèi)容,請支持正版,購買注冊,得到更好的正版服務(wù)。我們非常重視版權(quán)問題,如有侵權(quán)請郵件[admin@lxwl520.com]與我們聯(lián)系進(jìn)行刪除處理。敬請諒解!