• Easyui常用语法 Combobox


    1.联动

    $(function () {
                $('#009').combobox({
                    @*url: "")",
                    editable: false,
                    idField: 'id',
                    textField: 'name',
                    method :'get',*@
                    onChange: function (newValue, oldValue) {
                        resetStations(newValue, oldValue);//联动设置
                    }
                });
            });

            function resetStations(type, change) {
                $.ajax({
                    type: "post",
                    url: "")",
                    data: { 009: $('#009').combobox('getValue') },
                    error: function (request) {
                        alert("Connection error");
                    },
                    success: function (data) {
                        //alert(data);
                        //$('#').combobox('clear');
                        $("#fm").find('select[id=]').combobox('clear');
                        $("#fm").find('input[id=]').textbox('clear');
                        //$('#').combobox('loadData', {});
                        $("#fm").find('select[id=]').combobox('loadData', {});
                        //$('#').combobox('loadData', data);
                        $("#fm").find('select[id=]').combobox('loadData', data);
                    }
                })
            }

    2.多选

    $(function () {
                $("#017").combogrid({
                    prompt: '输入首关键字自动检索',
                    mode: 'remote',
                    hasDownArrow: true,
                    editable: true,
                    multiple: false,
                    mode: 'remote',
                    panelWidth: 450,
                    checkOnSelect: true,
                    idField: '',
                    textField: '',
                    url: '")',
                    method: 'get',
                    columns: [
                        [
                            { field: '', title: '', width: 80 },
                            { field: '', title: '', width: 50 },
                            { field: '', title: '', width: 200 },
                            { field: '', title: '', width: 80 }
                        ]
                    ],
                    itColumns: true,
                    onSelect: function (rowIndex, rowData) {
                        console.log(rowData.);
                        $('#').textbox('setValue', rowData.);
                        $('#').textbox('setValue', rowData.);
                    }
                });
            })

  • 相关阅读:
    社群运营管理主题之社群管理价值
    专用/独享代理与共享代理有何区别?如何选择?
    学会这几款表白特效让你明年双十一不再是一个人
    python:搭建 flask_restful 服务
    vue3 自动导入composition-apiI和组件
    深入探讨Function Calling:实现外部函数调用的工作原理
    半减器、全减器和减法器原理和设计
    HIVE/SQL 实现同一列数据累加和累乘
    练气第六天
    【算法|动态规划No.25】leetcode LCR 020. 回文子串
  • 原文地址:https://blog.csdn.net/po_xiao_/article/details/126507636