$scope.submit=function(){ varurl=$scope._datalistmodel.impexp.imp; vart_file=newFormData(document.getElementById('upload_file'));//id是form表单的id $http({ headers:{ 'content-type':undefined },url:url,data:t_file,method:'post',transformRequest:angular.identity }).then(function(d){ }); };