如果我在jquery中传递controllername和action name但是那不可以? [英] if i pass controllername and action name in jquery but that can't?

查看:67
本文介绍了如果我在jquery中传递controllername和action name但是那不可以?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ .getJSON('/ Setup_Location / GetCountryName /',我使用此代码来传递控制器名称和操作名称,但是没有通过..请另外传递方式..请给我发送

.. .......



没有错误如何使用json传递controllername和action name。

$.getJSON('/Setup_Location/GetCountryName/', iuse this code for passsing controllername and action name but thats not passed..please another way to pass..please send me
.........

no error came how to pass controllername and action name using json.

推荐答案

你可以这样做



'@ Url.Action(actionName,controllerName)'
you can do like this

'@Url.Action("actionName","controllerName")'


这篇关于如果我在jquery中传递controllername和action name但是那不可以?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆