zoukankan      html  css  js  c++  java
  • 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;
        }
    });
    
    
  • 相关阅读:
    Set / Map 集合 -ES6
    getter/setter
    构造函数-class类 -语法糖 -ES6
    原型链-继承
    创建对象/克隆
    Generator生成器函数- ES6
    iframe跨域访问
    setTimeout延迟加载
    adt新建项目后去掉appcompat_v7的解决方法
    PHP数组的操作
  • 原文地址:https://www.cnblogs.com/keyboardone/p/7918859.html
Copyright © 2011-2022 走看看