图片调用失败,请教一下?

发布于 9 年前作者 hcheng10341 次浏览最后编辑 9 年前来自 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 回复
chao53
chao531 楼6 年前

怎么调用的

qiang27
qiang272 楼6 年前

<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