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

最后一个是关于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"
            });



猜你喜欢

转载自blog.csdn.net/q1325545052/article/details/70908017