• 移动端省际联动插件mobiscroll


    <link href="assets/css/mobiscroll.custom-2.17.0.min.css" rel="stylesheet" type="text/css" />

    <script src="assets/js/mobiscroll.custom-2.17.0.min.js" type="text/javascript"></script>

    //html

    <ol class="treelist-sex" id="menusex">
                    <li>男</li>
                    <li>女</li>
                </ol>

        <select id="demo" class="all_width ">
                <optgroup label="济南">
                    <option value="1">历下区</option>
                    <option value="2">市中区</option>
                    <option value="3">天桥区</option>
                    <option value="4" selected="selected">历城区</option>
                </optgroup>

                <optgroup label="滨州">
                    <option value="15">滨城区</option>
                    <option value="16">西海区</option>
                </optgroup>
            </select>

    //js

    $('.treebutton-sex').click(function() {
                        $('.treelist-sex').mobiscroll('show');
                        return false;
                    });
                    $(".treelist-sex").mobiscroll().treelist({
                        theme: "mobiscroll",
                        display: 'bottom',
                        lang: "zh",
                    });

    // js 地址选择控件(可显示多行)
                    $('#city-picker').click(function() {
                        $('#demo').mobiscroll('show');
                        return false;
                    });
    $('#demo').mobiscroll().select({
        theme: 'mobiscroll',
        display: 'bottom',
        label: 'City',
        lang: "zh",
        group: true,
        groupLabel: 'Country',

    //不允许右侧控制左侧

    group: {
        clustered: true
    }
        //选择表单展现的样式
        inputClass:"all_width text-right clear_border"
    //  fixedWidth: [100, 170]
    });

  • 相关阅读:
    Ueditor使用以及遇到的问题
    自己写一个分页PageHelper
    C#_IO操作_查询指定文件夹下的每个子文件夹占空间的大小
    C#发邮件_EmailHelper
    位运算反(~)与(&)异或(^)或(|)右移(>>)左移(<<)
    shell命令快捷键
    Openstack Day1简介及虚拟环境搭建
    VirtualBox双网卡搭建Linux虚拟实验环境
    git 学习笔记
    python socket 网络编程
  • 原文地址:https://www.cnblogs.com/zhouyx/p/5144839.html
Copyright © 2020-2023  润新知