0
点赞
收藏
分享

微信扫一扫

鸿蒙第六课

seuleyang 2022-01-26 阅读 82

文档中心   

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 条评论