js new image 安卓打包后,image报错

有没有一个可以代替new image的方法

Image对象在浏览器环境下才存在吧,你先说一下要用它干啥?ping?

对,ping

试试用XMLHttpRequest代替

…没太明白

好了,谢谢大神

怎么用,我的苹果包也报错。。。