mobiscroll2.5.4 日期组件


 

<script type="text/javascript">
        function setCss(o) {
            $('input:jqmData(role="datebox")').mobiscroll(o);
        }
        $(function () {
            opt1 = {
                preset: 'date', //日期
                theme: 'jqm', //皮肤样式
                display: 'modal', //显示方式 
                mode: 'mixed', //日期选择模式
                dateFormat: 'yy-mm-dd', // 日期输出格式
                dateOrder: 'yymmdd', //面板中日期排列格式
                setText: '确定', //确认按钮名称
                cancelText: '取消',//取消按钮名籍我
                dayText: '日', //面板中日文字
                monthText: '月', //面板中月文字
                yearText: '年', //面板中年文字
                endYear: 2020, //结束年份
                hourText: '时',
                minuteText: '分',
                secText: '秒',
                lang: 'zh' //语言
            };
            //dateOrder: 'd Dmmyy',
            //rows: 5,
            //wheels: [{ 'Label 1': { x: 'x', y: 'y', z: 'z' }, 'Label 2': { a: 'a', b: 'b' } }, { 'Label 3': { 1: '1', 2: '2' }, 'Label 4': { 4: '4', 5: '5' } }],
            //invalid: { daysOfWeek: [0, 6], daysOfMonth: ['5/1', '12/24', '12/25'] }
                
            $('input:jqmData(role="datebox")').mobiscroll(opt1);
        });
    </script>

 

mobiscroll下载


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM