bootstrap table

Bootstrap Table
表格选项
列表选项
事件
方法 
*
*
列头合并(方式1)

columns: [
    [{
        "title": "第一季度",
        "align": "center",
        "valign": "middle",
        "colspan": 2,
        "width": 100
    }, {
        "title": "第二季度",
        "align": "center",
        "colspan": 2,
        "width": 100
    }, {
        "title": "第三季度",
        "align": "center",
        "width": 100
    }, {
        "title": "签名",
        "align": "center",
        "valign": "middle",
        "rowspan": 2,
        "width": 100
    }],
    [{
        title: '1月',
        field: 'yuwen',
        valign: "middle",
        "align": "center",
        "width": 100
    }, {
        title: '2月',
        field: 'shuxue',
        valign: "middle",
        "align": "center",
        "width": 100
    }, {
        title: '4月',
        field: 'sell_stoch_rsi',
        valign: "middle",
        "align": "center",
        "width": 100
    }, {
        title: '5月',
        field: 'sell_stoch_rsi',
        valign: "middle",
        "align": "center",
        "width": 100
    }, {
        title: '7月',
        field: 'sell_stoch_rsi',
        valign: "middle",
        "align": "center",
        "width": 100
    }]
]

列头合并(方式2)

<table>
    <thead>
        <tr>
            <th colspan="2" data-valign="middle" data-align="center">第一季度</th>
            <th colspan="2" data-valign="middle" data-align="center">第二季度</th>
            <th colspan="2" data-valign="middle" data-align="center">第三季度</th>
            <th rowspan="2" data-valign="middle" data-align="center">年度汇总</th>
        </tr>
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>邮箱</th>
            <th>性别</th>
            <th>城市</th>
            <th>积分</th>
        </tr>
    </thead>
</table>

*
单击一行(onClickRow)
*
双击一行(onDblClickRow)
*
单击一个单元格(onClickCell)
*
双击单元格(onDblClickCell)
*
更新一个单元格(updateCell)
*
*
*
*
*
*

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值