zoukankan      html  css  js  c++  java
  • 一些小总结-04

    7.easyUI中的datagrid控制列表特殊行颜色
    如图:

    
    
    在datagrid的样式里面做一个判断,当某中条件的时候就进行行内样式的修改,其他的都不变。
    <div data-options="region:'center'">
        <table id="projectList" class="easyui-datagrid" data-options="
                rowStyler: function(index,row){
                   if (row.status ==0){
                      return 'color:gray';
                   }
                }"
    width="100%">
            <div id="tb" class="list_opear">
                <a onclick="toEdit('')" class="easyui-linkbutton" data-options="iconCls:'icon-add'">新建</a>
            </div>
        </table>
    </div>
    8.easyUI中的combobox下拉框前台本地搜索
    如图:

    
    
    HTML:
    <td align="center"><span style="color: red">*</span>负责人</td>
    <td><input id="ownerid" class="easyui-combobox" data-options="required:true"
              
    style="width:200px;"/></td>
    JavaScript:
    function loadlb() {
        var json = getJsonData('../getUserList.hebe');//初始数据后台获取
        $("#ownerid").combobox({
            prompt: '输入姓氏后自动搜索',//该属性是textbox中的
            mode: "local",//定义文本改变时过滤读取本地列表
            data: json,//数据格式
            valueField: 'id',//组件值
            textField: 'name',//文本值
            hasDownArrow: true,//定义显示向下箭头按钮
            filter: function (q, row) {//文本参数显示列表
                var opts = $(this).combobox('options');
                return row[opts.textField].indexOf(q) == 0;
            }
        });
    }
    则可以实现前台本地搜索定位,如图:

    
    
  • 相关阅读:
    direct path write 等待事件导致数据库hang
    Sql Server数据库视图的创建、修改
    MVC视图中Html.DropDownList()辅助方法的使用
    Ubuntu16.04下安装.NET Core
    Ubuntu16.04下部署golang开发环境
    win7环境下安装运行gotour【转载整理】
    一.Windows I/O模型之选择(select)模型
    Windos下的6种IO模型简要介绍
    编码介绍(ANSI、GBK、GB2312、UTF-8、GB18030和 UNICODE)
    串口通信知识点详解
  • 原文地址:https://www.cnblogs.com/bad-guy/p/10997663.html
Copyright © 2011-2022 走看看