【发布时间】:2015-11-09 19:37:56
【问题描述】:
我正在尝试对数据表和 angularjs 使用 Ajax 语法
我收到一个无效的 json 响应 =
self.dtOptions = DTOptionsBuilder.fromSource([{
"id": 860,
"firstName": "Superman",
"lastName": "Yoda"
}])
但我没有收到无效的回复 =
self.dtOptions = DTOptionsBuilder.fromSource('https://l-lin.github.io/angular-datatables/data.json')
.withPaginationType('full_numbers');
这是为什么?第一项是有效的 json...在http://jsonlint.com/验证
原始示例 https://l-lin.github.io/angular-datatables/#/withAjax
谢谢!
【问题讨论】:
标签: javascript angularjs ajax datatables