我在我與工作正常在Firefox和Chrome,但jQuery代碼使用files.length在Internet Explorer中未定義
$(upload_button).bind('change', function(event)
{
var files = this.files;
alert(typeof(files));
if(typeof(files)!='undefined')
{
}
});
不是在IE8(即IE爲files.length返回undefined,而其他人則返回值)。那麼有人知道如何解決這個問題嗎?
我懷疑'輸入'不是一個好的選擇,因爲IE中的變量標識符... :)但也許它只是我和我越來越老和可疑 – fcalderan
哪個版本的IE? IE6/7/8? '文件'屬性不起作用或'this'? – undefined
好的,代碼的其餘部分(包括'});關閉'bind()'方法)是什麼?哪部分不起作用? –