如何剃刀变量传递给jQuery函数为参数 [英] How to pass a razor variable to jquery function as parameter
本文介绍了如何剃刀变量传递给jQuery函数为参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有下面这段code不工作的:
I am having the following piece of code that is not working:
< A HREF =#的onclick =编辑(@Interest);>编辑< / A>
在那里我有
@ {字符串利息=}
推荐答案
您需要引用字符串是这样的:
You need to quote the string like this:
<a href="#" onclick="Edit('@Interest');">edit</a>
这篇关于如何剃刀变量传递给jQuery函数为参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文