图片能打开,但是老是报错,路径也没错是怎么会是呢?
发布于 5 年前 作者 hzou 4512 次浏览 来自 问答

Failed to load image http://479633111.debug.open.weixin.qq.com/pages/index/index-detail/index-detail : the server responded with a status of 404 (HTTP/1.1 404 Not Found) 

From server 127.0.0.1

(anonymous) @ VM17853:2

老是报这个错误

10 回复

谢谢  已经解决啦

判断条件,不同页面打开使用不同路径吗?

我知道了,,因为渲染层异步加载了图片,在image中加

wx:if="{{userInfo.avatarUrl}}"

{{userInfo.avatarUrl}}为你绑定的图片路径

Failed to load image http://479633111.debug.open.weixin.qq.com/pages/index__/index-detail/index-detail__

1.你这个路径 怎么 有两个index-detail 是不是有问题?

2. 有时候图片大,加载慢也报错

3.wx:if判断一下图片路径是否存在,是否==undefined

从报错看是没有路径 ,

加if判断

我有 路径 但是 还是报错

判断什么?

是的,打开都没问题

回到顶部