img.onload = (e, a) => {
// 宽大
console.log(e, a, '111') // Event { isTrusted: true }
if (e.path[0].naturalWidth >= e.path[0].naturalHeight) {
this.direction = 1
} else {
this.direction = 2
}
}
获取到的 event 对象是 Event { isTrusted: true } 这样的?
0 个回复