【发布时间】:2014-02-16 14:20:23
【问题描述】:
我有 $get 调用我的 C#- MVC - Angular Js Proj 。 请求的 url 对我来说不正确,并且路由到计算机上的根 proj 文件夹
$http.get('../Home/GetResponse').success(function (response) {
alert(response);
});
鉴于我的控制器名称是“HomeController”并且函数是“GetResponse”,我应该如何编写 url?
谢谢。
【问题讨论】:
-
嗨!没关系 。我将 html 文件替换为 cshtml 并从 proj 运行它 - 不是按文件 ..
标签: c# asp.net-mvc angularjs