xiangchao
|
$( '#datalist'). datatable( 'load', data);//这样的调用没问题的吧?问题是我这里根本不起作用!只能初始化出一个表格,然后就不能更新了...在线等解答 |
sunhao
|
可能是你的数据格式不正确。请参考官方文档的源代码。 你可以将你的代码贴出来,大家帮忙看看。 |
sunhao
|
xiangchao
|
{"cols":[{"width":"auto","text":"积分变动","type":"string","flex":false},{"width":"auto","text":"最终值","type":"string","flex":false},{"width":"auto","text":"行为","type":"string","flex":false},{"width":"auto","text":"时间","type":"date","flex":false}],"rows":[{"data":[" +10点 ","80点","登录【T币:+10点】","2016-03-02 15:15:47"]},{"data":[" +10点 ","70点","登录【T币:+10点】","2016-03-02 15:13:22"]},{"data":[" +10点 ","60点","登录【T币:+10点】","2016-03-02 15:11:46"]}]} 这是我的数据 |
sunhao
|
数据表格动态更改数据示例: |