我有以下 Javascript 代码:
var idJS;
$('.disp').click(function () {
idJS = $(this).attr("id");
})
然后我想这样做:
@Ajax.ActionLink("myMethod", "myMethod", "HomeController", new { id = idJS },
new AjaxOptions() { HttpMethod = "Get", UpdateTargetId = "myDiv" })
是否有可能做到这一点?