gpt4 book ai didi

asp.net-mvc - 如何在@Url.action 中传递多个参数

转载 作者:行者123 更新时间:2023-12-02 00:54:38 25 4
gpt4 key购买 nike

<分区>

我的javascript函数如下

function SelectVoucher(Vid, vDeptCode) {
var voucherID = Vid;
var vDeptCode = vDeptCode;
window.location.href = "@Url.Action("Edit_Voucher", "Voucher", new { id = voucherID }) ";
}

但是 new { id = voucherID } 给我一个错误:

voucher id does not exists in current Context.

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com