将数据表与Web API第1部分一起使用:进行简单的GET请求 [英] Using datatables with web API part 1: making a simple GET request
问题描述
我已阅读本文此处
我已经尝试重做这篇文章,但我的页面中的数据表是空的,没有填充数据
任何想法?
我尝试过:
redo与使用DataTables和Web API第1部分:制作简单的GET请求相同| Levelnis [ ^ ]
i have read this article here
and i have I tried to redo this article but datatable in my page was empty and was not filled by the data
any idea?
What I have tried:
redo the same as Using DataTables with Web API Part 1: Making a simple GET Request | Levelnis[^]
推荐答案
您是否在底部看到评论:
Did you see the comment at the bottom:
表格标记的id属性应该是CustomerTable,而不是CustomersTable
the id attribute for the table markup should be "CustomerTable", not "CustomersTable
而且这个评论:
And also this comment:
BrowserJsonFormatter类?它是在可下载的解决方案中实现的,数据表似乎没有填充数据没有它。
BrowserJsonFormatter class? It is implemented in the downloadable solution and the data table doesn't appear to get populated with the data without it.
这篇关于将数据表与Web API第1部分一起使用:进行简单的GET请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!