【发布时间】:2017-09-22 06:22:32
【问题描述】:
您好,我正在尝试使用返回数字的函数更新我的数据库
$scope.sum = function()
{
return $scope.inp + $scope.points;
};
此函数将更新对象点、列名和 id 1 中的记录:
$scope.addPoint = function() {
PointService.addPoint($scope.sum, 1)
.then(function(result) {
$scope.inp = 0;
getMyPoints();
});
}
addPoint = function(id,points)
{
return $http.put(getUrlForId(1),points,name);
}
错误是:错误详细信息:无法将类型“int”转换为“System.Collections.Generic.Dictionary”
字段的数据类型是浮点数。 知道代码有什么问题吗?
【问题讨论】:
标签: angularjs ionic-framework backand