Home > Web Front-end > HTML Tutorial > BootStrap Table 的onClickCell回调函数两种写法参数不一致_html/css_WEB-ITnose

BootStrap Table 的onClickCell回调函数两种写法参数不一致_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:26:51
Original
1267 people have browsed it

BootStrap Table的官方手册上说,onClickCell和click-cell.bs.table是一样的,但是经过测试,这两种写法的结果不一致,如果用onClickCell的方式,参数是那四个,但是一旦转换为click-cell.bs.table的方式,参数就会变成了五个,并且第一个是整个table的对象。【Linux公社 www.linuxidc.com】

所以在用这个函数的时候,要写成: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.

来自美国政府的Web设计标准,不建议使用Bootstrap http://www.linuxidc.com/Linux/2015-10/124172.htm

Bootstrap 的详细介绍: 请点这里

Bootstrap 的下载地址: 请点这里

本文永久更新链接地址: http://www.linuxidc.com/Linux/2016-02/128344.htm

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template