Razor asp.net:访问javascript变量
本文关键字:javascript 变量 访问 asp net Razor | 更新日期: 2023-09-27 18:04:50
目前我有这个:
resources: [
{
field: "roomId",
name: "Rooms",
dataSource: {
transport: {
read: {
url: "@Html.Raw(
Url.Action(
"Filter_Rooms",
"Room",
new {
pFilter = false,
pCapacity = 25,
pBeamer = true,
pTelevision = false
}))",
dataType: "json"
},
}
}
}
]
这些参数pFilter = false, pCapacity = 25, pBeamer = true, pTelevision = false
,对于过滤器现在是硬编码的,但实际上我想要它们来自: