tjwecreate

Results 1 issues of tjwecreate

多次引用word时,有时会报错。我没有源代码,只有编译压缩后的。 else{var d=a[0].name;"docx"==d.substr(d.lastIndexOf(".")+1)? 这行代码,有时候 a=[],所以 a[0].name会报错。 修改办法: 把 a.on("focusin remove",e);b.click()})}这里的a.on("focusin remove",e);移动到前边的 b.addEventListener("change",function(f){d(Array.prototype.slice.call(f.target.files));})这个函数的d函数后边 b.addEventListener("change", function(f) { d(Array.prototype.slice.call(f.target.files)); a.on("focusin remove", e); }); 总之就是a.on("focusin remove",e)造成程序提前返回,所以后边的程序没有得到文件而报错。 希望作者改进一下。