[英]file upload finish remove file name?
您擺弄演示有錯誤
Angular library not included
ng-app="myApp"
考慮使用下面的代碼,根據需要進行工作:
var myApp = angular.module('myApp', []);
myApp.controller('myCtrl', function($scope) {
$scope.upload = function(){
alert('Removing file');
$scope.myFile = "";
};
});
為此寫這個css。
input[type="file"]{
width:90px; /*reduce input width*/
color: transparent /*text will be there but not visible*/
}
要么
input[type="file"]{
color: transparent; /*text will be there but not visible*/
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.