• jqxWidgets 常用代码


    数据源

    function getOptTypeList(){
        $.ajax({
            url: "getOptTypeList.action",
    	type:'POST', 
    	datatype: "json",
    	async: false,
    	success:function(data,textStatus){
    	    optTypeList=data.getOptTypeList;
            }
        });
    };
    
    

    下拉列表 jqxDropDownList

    $("#optType_behind").jqxDropDownList({ source: optTypeList, displayMember: "OPT_TYPE_CN",valueMember: "OPT_TYPE",  '170', dropDownHeight: 100});
    $('#optType_behind').on('select', function (event) {
        var args = event.args;
        var item = $('#optType_behind').jqxDropDownList('getItem', args.index);
        if (item != null) {
            optType = item.value;
            optName = item.label;
        }
    });
    		    
    

    jqxListBox

    $("#factor").jqxListBox({ source: objTypeList, displayMember: "DD_ITEM_NAME", valueMember: "OBJ_TYPE",  200, height: 150, theme: '' });
    $('#factor').bind('select', function (event) {
        var args = event.args;
        var item = $('#factor').jqxListBox('getItem', args.index);
        if (item != null) {
            factor = item.value;
            factorCn = item.label;
        }
    });
    
    
  • 相关阅读:
    (7)常量和变量
    (6)python基础数据类型
    PEP8规范
    (5)原码反码补码
    (4)二八十六进制转换
    (3)你的第一个python程序
    (2)python开发环境搭建
    几种常见的开发语言对比
    (1)python的基础认知
    (25)线程---local数据隔离
  • 原文地址:https://www.cnblogs.com/keyboardone/p/7918859.html
Copyright © 2020-2023  润新知