stmt
$http({
method: 'POST',
url: 'add',
headers: {'Content-Type': false,'data-type': 'json'},
data: $scope.setting
}).success(function (data) {
console.log(data);
$scope.messageEdit = data;
$scope.message="";
});
答案 0 :(得分:0)
我得到了答案
var myFormData = new FormData();
var photo=document.getElementById('st_logo');
var file=photo.files[0];
console.log(file.name+" "+file.size);
myFormData.append("currency", $scope.setting.st_currency);
myFormData.append('bgcolor', $scope.setting.st_billingbgcolor);
myFormData.append('textcolor', $scope.setting.st_billingtextcolor);
myFormData.append('logo',file );