Angular Js如何在WebApi中读取FormData值

时间:2019-01-04 04:31:24

标签: angularjs asp.net-web-api

我想在这里传输一些数据,例如

    $scope.uploadconfirm = function (b, c, d) {
        var _maildata = {
            fname:b
        }
        _formdata.append("DealModel", angular.toJson(_maildata));
}

此数据如何在WebApi中读取 我搜索并且得到了这个东西,但是这里的模型显示为空

        var model = HttpContext.Current.Request.Params["DealModel"];

0 个答案:

没有答案