zoukankan      html  css  js  c++  java
  • javascript function call

    var columns = [
            {field: 'selectItem', radio: true},
            {title: '菜单编号', field: 'menuCode', align: 'center', valign: 'middle', sortable: true, '12%'},
            {title: '菜单名称', field: 'menuName', align: 'center', valign: 'middle', sortable: true, '17%'},
            {title: '菜单父编号', field: 'pcode', align: 'center', valign: 'middle', sortable: true},
            {title: '类型', field: 'menuType', align: 'center', valign: 'middle', sortable: true,
                formatter: function(value,row,index){
                    if(value=="0"){
                        value="目录"
                    }else if(value=="1"){
                        value="菜单"
                    }else if(value="2"){
                        value="按钮"
                    }
                    return value;
                }
            },
            {title: '图标', field: 'icon', align: 'center', valign: 'middle', sortable: true},
            {title: '请求地址', field: 'url', align: 'center', valign: 'middle', sortable: true, '15%'},
            {title: '排序', field: 'orderNum', align: 'center', valign: 'middle', sortable: true}
            ] var td = $('<td style="'+((column.width)?(''+column.width):'')+'"'+((column.align)?('align='+column.align):'')+'></td>'); // 增加formatter渲染 if (column.formatter) { td.html(column.formatter.call(this, item[column.field], item, index)); } else { td.text(item[column.field]); }
  • 相关阅读:
    subprocess模块
    面向对象进阶
    python---面向对象学习
    vim命令---存阅
    python基础-软件目录开发规范
    装饰器、迭代器、生成器
    Python基础类型
    使用Git来撤销修改
    使用Git去管理修改
    了解Git的工作区和暂存区
  • 原文地址:https://www.cnblogs.com/rigid/p/8275492.html
Copyright © 2011-2022 走看看