angular 文件上传
文件上传时的处理
$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){});};
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。