收藏
回答

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

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 个回答

  • 律动
    律动
    2019-10-29

    <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


    2019-10-29
    有用
    回复 3
    • var 友原
      var 友原
      2019-10-29
      去掉http://
      loalhost:8080/upload/888.jpg
      2019-10-29
      回复
    • 律动
      律动
      2019-10-29回复var 友原
      你好,http://
      loalhost:8080/upload/888.jpg这个是接受到的请求值。
      2019-10-29
      回复
    • 律动
      律动
      2019-10-29
      看到原因了,local写成loal了,谢谢
      2019-10-29
      回复
  • var 友原
    var 友原
    2019-10-29

    怎么调用的

    2019-10-29
    有用
    回复
登录 后发表内容
问题标签