0
我在尝试将我的内嵌代码更新为新的Chrome扩展清单的外部代码。Chrome扩展内嵌js更新
我的旧代码是:
<input id="importbutton" type="file" onchange="dataImport(this.files);">
我的新代码,但它不工作 - 也许有人可以帮我调试呢?
$('#importbutton').bind('onchange', function() {
var myimport = $('#importbutton').val();
dataImport(myimport.files);
});
我认为这个问题是解释“这”一部分它寻找相同的东西,然后文件。 – Blynn