BootStrap Table 的onClickCell回调函数两种写法参数不一致

所以在用这个函数的时候,要写成:bootstraptable('click-cell.bs.table',function( e, field, value, row, $element){}) 的形式才可以。

onClickCell click-cell.bs.table field, value, row, $element Fires when user click a cell, the parameters contain:
field: the field name corresponding to the clicked cell,
value: the data value corresponding to the clicked cell,
row: the record corresponding to the clicked row,
$element: the td element.

Bootstrap 的详细介绍请点这里
Bootstrap 的下载地址请点这里

猜你喜欢

转载自www.linuxidc.com/Linux/2016-02/128344.htm
今日推荐