<input type="file" onchange="angular.element(this).scope().addPhoto(this,event)" accept="image/*" id="carPhotoFile">
在js 的成功回調函數中
$scope.addPhoto = function(file,e){
//成功的回調
e.target.value = ''; //置為空
}
<input type="file" onchange="angular.element(this).scope().addPhoto(this,event)" accept="image/*" id="carPhotoFile">
在js 的成功回調函數中
$scope.addPhoto = function(file,e){
//成功的回調
e.target.value = ''; //置為空
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。