关于bootstrap Table的一些使用心得
2018-07-18 本文已影响0人
一现_
使用jq bootstrap的时候, 方法是$('#xxx').bootstrapTable(setting),
setting是一系列的配置,可以根据自身需求进行设置,注意以下几个点:

②uniqueId:每一行的唯一标识,一般为主键列,设置为从服务器渲染的唯一ID即可
列参数,在bootstrap table表格中的列参数,注意点
①data-field属性对应服务器给回的数据对象中的属性值
②data-formatter属性说的对数据的处理,写一个函数方法,参数有value,row,index,表示该行该列的值,该行的全部显示的数据,索引
③data-events属性是对data-formatter中出现的相应绑定事件
