【发布时间】:2015-03-07 05:42:56
【问题描述】:
我是 Angular 新手,我的项目需要一些起点。 如何通过鼠标单击背景从 ajax 数据创建新表? 我知道 ajax 数据的列数未知,并且有时会有所不同。
例如:
the first click on background = table 1, ajax request to /api/table
| A | B | C |
| 1 | 2 | 3 |
| 5 | 7 | 9 |
the second click on background = table 2 and server returns new data from the same url /api/table
| X | Y |
| 5 | 3 |
| 8 | 9 |
【问题讨论】:
-
您能否展示一个服务器请求的示例结果?