bootstrap--table,select2及x-editable的使用小结

来源:互联网 发布:coc王升级数据2016 编辑:程序博客网 时间:2024/05/19 02:28

最后一个是关于bootstap-table的使用小结,由于使用了有一段时间再来总结,当初的好多点都忘了不少,先写出记忆清楚的一部分,发现不妥之处再待纠正。



                                                                                  

补充:2017.05.12

关于bootstrapTable的方法的使用,应在文档加载结束后调用。

    $(function () {        var str = $("#finishedTab").bootstrapTable("getData");        console.dir(JSON.stringify(str));    })

                                                                                      

更新单元格的方法,好像只能对data有设值的field有作用,

            {                field:"total",                title: '合计',                align: 'center',                valign: 'middle',                formatter:function (value, row, index) {                    //......                    return result;                }            }
这种field无法更新值。

            $("#finishedTab").bootstrapTable("updateCell", {                index: 0,                field: "total",                value: "abc"            });



0 0
原创粉丝点击