鸿蒙第六课

seuleyang

关注

阅读 83

2022-01-26

文档中心   

export default {
  data: {
    responseData: 'NA',
    url: "test_url",
  },
  fetch: function () {
    var that = this;
    fetch.fetch({
      url: that.url,
      success: function(response) {
        console.info("fetch success");
        that.responseData = JSON.stringify(response);
      },
      fail: function() {
        console.info("fetch fail");
      }
    });
  }
}

 

 

 

 

精彩评论(0)

0 0 举报