如何从 actionlink 调用 jquery 函数。我的 this.href 结果:“localhost:54678/Customer?param=1”但我需要 this.href:“localhost:54678/Customer/EditCustomer/?param=1”客户是控制器,EditCustomer 是操作。
查询:
$('#mylink').click(function (e) {
jQuery('#dialog').dialog('open');
var iframe = $('#frame');
alert(this.href);
$(iframe).attr('src', this.href);
e.preventDefault();
});
看法:
<%= Html.ActionLink(
"Click",
"Index",
new { param = 1 },
new { id = "mylink" })
%>
localhost:54678/Customer/EditCustomer/?param=1 这个怎么调用?