请问一下 下面这段JS为什么在电脑能正确运行,手机上却无效?
$(".add_file input").change(function(){
var _t =this.files[0];
if(_t.size > 512000000){
alert("文件太大了");
}
else{
if(_t.type.indexOf('image') >= 0){
$(this).parent('li').addClass('change');
}else if(_t.type.indexOf('text')>=0) {
$(this).siblings('.preview').html('<i class="icon-file-pdf"></i><p>'+_t.name+'</p>');
$(this).parent('li').addClass('change');
}else if(_t.type.indexOf('audio')>=0) {
alert("是音频");
}else if(_t.type.indexOf('video')>=0) {
alert("是视频");
}else if(_t.type.indexOf('zip')>=0) {
alert("是压缩包");
}else{
alert('不支持')
}
}
}) ;
谢谢。