请求服务时出错
发布于 5 年前 作者 yang90 1844 次浏览 来自 问答

代码:

getDept: function (pid) {

    var that=this;

    var param = “<PARAM><BISID>1001</BISID></PARAM>”

    wx.request({

      url: ‘https://localhost:8080/wx_hh/queryAction!getList.action’,

      data: {

        param:param

      },

      header: {

        ‘content-type’: ‘application/json’

      },

      success: function (res) {

        console.log(res.data)

      }

    })

  },

2 回复

谢谢  解决了 找到原因了 是我后台服务有问题没有启动成功 修改后台服务后可以正常获取数据了

你试着根据红色错误信息解决了吗?

回到顶部