Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4157447
  • 博文数量: 601
  • 博客积分: 15410
  • 博客等级: 上将
  • 技术积分: 6884
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-16 08:11
个人简介

独学而无友,则孤陋而寡闻!

文章分类

全部博文(601)

文章存档

2020年(1)

2018年(4)

2017年(7)

2016年(42)

2015年(25)

2014年(15)

2013年(36)

2012年(46)

2011年(117)

2010年(148)

2009年(82)

2008年(37)

2007年(41)

分类: jQuery

2016-01-03 11:35:26

BootStrap Table的官方手册上说,onClickCell和click-cell.bs.table是一样的,但是经过测试,这两种写法的结果不一致,如果用onClickCell的方式,参数是那四个,但是一旦转换为click-cell.bs.table的方式,参数就会变成了五个,并且第一个是整个table的对象。
所以在用这个函数的时候,要写成: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.
阅读(7449) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~