mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
431 B
431 B
动态加载数据
- order: 4
列表数据是远程读取的,并有 loading 效果。
var Table = antd.Table;
var columns = [{
title: '姓名',
dataIndex: 'name'
}, {
title: '年龄',
dataIndex: 'age'
}, {
title: '住址',
dataIndex: 'address'
}];
React.render(<Table columns={columns} dataSource="/components/table/demo/data.json" />
, document.getElementById('components-table-demo-ajax'));