图片调用失败,请教一下?
发布于 7 年前 作者 hcheng 10239 次浏览 来自 官方Issues

Failed to load image http://loalhost:8080/upload/888.jpg

net::ERR_NAME_NOT_RESOLVED 

console.error @ VM13:1

t.(anonymous function) @ VM32 WAService.js:1

(anonymous) @ VM50:2

2 回复

怎么调用的

<view wx:for="{{articleList}}" class=‘content’ bindtap=‘godetail’ data-arcid="{{item.articlecontent}}">

<view class=‘artImg’>

<image src=’{{item.imageUrl}}’></image>

</view>

onLoad: function () {

var that=this

wx.request({

url: http://localhost:8080/third,

header: {

‘content-type’: ‘application/json’ // 默认值

},

success(res) {

console.log(res.data)

that.setData({

articleList:res.data

回到顶部