`onload is not function?` 报错了吧。 正确的应该是 img.onload = (()=>resolve(img)) img.onerror = (()=>reject())
阅读量:1
点赞量:0