-6
“@ Url.Action(” UpdateNgTemplate “ ”帐户“,新{用户名=我们如何写代码的C#.NET块一个jQuery代码在浏览
Here i want to pass a code of jquery like -- $('#btn').attr('key'); ---
})”
“@ Url.Action(” UpdateNgTemplate “ ”帐户“,新{用户名=我们如何写代码的C#.NET块一个jQuery代码在浏览
Here i want to pass a code of jquery like -- $('#btn').attr('key'); ---
})”
我想你想是这样的:
<script>
window.location = "@Url.Action("UpdateNgTemplate", "Account")" +
"?UserName=" + $('#btn').attr('key');
</script>
,但它很难在你的问题中提供的信息告诉...
我想问我怎么能PA在操作方法中使用一个对象路由数据。我在脚本中编写代码为 $ http.post(“@ Url.Action(”UpdateNgTemplate“,”Account“,new {UserName =”$('#btn')。attr('key');“} )“)。成功(函数(数据){scope = {0; scope.customers = data; }); 这里在用户名我想获得使用jQuery Selector的价值,但我不知道如何将它写入对象路由值参数 – wasifravian