【发布时间】:2014-01-21 15:24:30
【问题描述】:
我有以下表格
using (Ajax.BeginRouteForm(
...
new AjaxOptions
{
HttpMethod = "POST",
OnFailure = "OnFailure",
OnSuccess = "OnSuccess"
}))
{
..,.
}
我在 TypeScript 文件中实现了 OnSuccess 函数。我正在尝试使此功能更加 TypeScripty。目前我有这个
function OnSuccess(data: what type goes here?) {
...
// use data.SomeValue here
...
}
问题是我应该说什么类型的数据才能让我仍然可以以某种方式使用 data.SomeValue?
【问题讨论】:
标签: c# jquery ajax typescript asp.net-mvc-5