qq_24142447
2015-04-21 07:27
采纳率: 33.3%
浏览 6.5k
已采纳

jquery datatable隐藏列问题

"iScrollLoadGap":2,
"bAutoWidth":true,
"bDeferRender":false,
//"aoColumnDefs":,
//"sScrollY":"100%",
//延迟加载
//"iDeferLoading":5,

    "sZeroRecords": "没有检索到数据",        
    "aoColumns": [  
                    { 'mDataProp':'productCode',"bSortable": false,"sTitle":"商品编码"},
                    { 'mDataProp':'coverSmallImage',"bSortable": false,
                        "mRender": function ( data, type, row ) {
                            return '<div style="text-align:right;"><input class="checkbox1" type="checkbox" style=" float:left; margin-top:18%;height:20px;width:20px;"><img style="height:80px; width="90px;" src="http://125.oss-cn-beijing.aliyuncs.com/'+data+'"></div>';
                        }
                    },                    
                    { 'mDataProp':'productName',"bSortable": false,"sTitle":"商品名称"},
                    { 'mDataProp':'productPrice',"bSortable": false,"sTitle":"价格"},
                    { 'mDataProp':'salePrice',"bSortable": false,"sTitle":"促销价格"}
                    ],
                    "aLengthMenu": [
            [5, 10, 15, 20,50,100, -1],
            [5, 10, 15, 20,50,100, "全部"] // change per page values here
            ],

                            我想要商品编码列隐藏该怎么做
                            隐藏单是要能取值

                             aoColumnDefs 属性吗

3条回答 默认 最新

相关推荐 更多相似问题