我正在使用
$(upload_button).bind('change', function(event)
{
var files = this.files;
alert(typeof(files));
if(typeof(files)!='undefined')
{
}
});
在我的 jQuery 代码中,它在 Firefox 和 Chrome 中运行良好,但在 IE8 中运行良好(即,IE 返回未定义的files.length,而其他返回值)。那么有人知道如何解决这个问题吗?