HBuilderx 火狐浏览器
在写方法的时候,发现外链式一直无法运行
然后最后发现
当代码是
window.onload= function(){
function showImg(cell) {
document.getElementById('img01').src = window.URL.createObjectURL(cell.files[0]);
}
}
无法运行
但是当去掉window.onload时册可以
function showImg(cell) {
document.getElementById('img01').src = window.URL.createObjectURL(cell.files[0])
new hand,别骂╭(╯^╰)╮