日期:2014-05-16 浏览次数:20626 次
addEvent(input, 'change', function(){
if ( ! input
------解决方案--------------------
input.value === ''){
return;
}
// Get filename from input, required
// as some browsers have path instead of it
var file = input.value;
if (false === self._settings.onChange.call(self, file, getExt(file))){
self._clearInput();
return;
}
// Submit form when value is changed
if (self._settings.autoSubmit) {
self.submit();
}
});