• 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下载

  • 相关阅读:
    四种wordpress常用的循环结构
    自动创建网页文章目录结构
    shell
    SSH
    架构
    Https
    if-else、switch、while、for
    do-while
    const
    Tail Call
  • 原文地址:https://www.cnblogs.com/spider024/p/3140460.html
Copyright © 2020-2023  润新知