无法加载资源:服务器响应状态 404(未找到) 企业管理员/绑定性质分配:发布后不工作



代码在本地主机中运行良好,但是当我发布此代码时,错误get并且没有加载表
EnterpriseMaster/BindNatureofAssignment:1 无法加载资源:服务器响应状态为 404(未找到(

              var post = $http({
              method: "POST",
              url: "/EnterpriseMaster/BindNatureofAssignment",
              dataType: 'json',
              headers: { "Content-Type": "application/json" } });
              post.success(function (data, status) {
                  //The received response is saved in Customers array.
                  $scope.NAO = data;
              });

>发生404错误意味着,请检查操作绑定性质的赋值是否发生在控制器中,如果它存在 请为 javascript 变量分配一个基本 url,并将该 javascript 变量提供给

 var ApplicationPath = 'Path of your Application';
var post = $http({
          method: "POST",
         url:  ApplicationPath+"/EnterpriseMaster/BindNatureofAssignment",
          dataType: 'json',
          headers: { "Content-Type": "application/json" } });
          post.success(function (data, status) {
              //The received response is saved in Customers array.
              $scope.NAO = data;
          });

最新更新