如何将javascript函数作为参数传递给Ajax Actionlink的路由值

时间:2022-02-08 15:11:50

I need to pass javascript function as a parameter value to the ajax actionlink in asp.net mvc app. how can we achieve this?

我需要将javascript函数作为参数值传递给asp.net mvc app中的ajax actionlink。我们怎样才能做到这一点?

Thanks in advance.

提前致谢。

1 个解决方案

#1


1  

I don't think you can pass javascript functions in Route Values! Are you sure this is exactly what you meant?

我认为你不能在路线值中传递javascript函数!你确定这正是你的意思吗?

#1


1  

I don't think you can pass javascript functions in Route Values! Are you sure this is exactly what you meant?

我认为你不能在路线值中传递javascript函数!你确定这正是你的意思吗?