Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ViewData["SOME VALUE"] 也可以返回吗?如果不是,为什么?
默认的 json actionresult 只序列化模型。但是编写自己的实现来序列化视图数据也没有问题。您可以从 codeplex 下载源代码并查看默认实现并重写它。