微信小程序——访问接口

 line_collect(e){
    let that = this;
    wx.request({
      url:"/list",
      data: {
        size: 20
      },
      method: "post",
      header: {
        'content-type': 'application/x-www-form-urlencoded'
      },
      success: function (res) {
        // // console.log(res);
        // let data = res.data.result.data;
        // that.setData({
        //   articleList: data
        // })
      }
    })
  },

猜你喜欢

转载自blog.csdn.net/inmarry/article/details/81703772
今日推荐