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]); }
  • 相关阅读:
    我与计算机
    C高级第四次作业
    C高级第三次作业
    C高级第二次作业
    C高级第一次PTA作业 要求三
    C高级第一次PTA作业
    第0次作业
    # 20182304 实验七 《数据结构与面向对象程序设计》实验报告
    # 20182304 实验八 《数据结构与面向对象程序设计》实验报告
    # 20182304 《数据结构与面向对象程序设计》第八周学习总结
  • 原文地址:https://www.cnblogs.com/rigid/p/8275492.html
Copyright © 2011-2022 走看看