我正在尝试转换为剃刀但显示错误
<%
AjaxOptions options = new AjaxOptions();
options.HttpMethod = "POST";
%>
@AjaxOptions options = new AjaxOptions();
options.HttpMethod = "POST";
答案 0 :(得分:4)
@{
AjaxOptions options = new AjaxOptions();
options.HttpMethod = "POST";
}