小编Ani*_*ngh的帖子

react-native提取中的'then(res => res.json())'是什么意思?

then(res => res.json())react-native提取中的以下代码段是什么意思?

fetch(url)
      .then(res => res.json())
      .then(res => {
        this.setState({
          data: res,
          error: res.error || null,
          loading: false
        });
Run Code Online (Sandbox Code Playgroud)

javascript jsx react-native fetch-api

6
推荐指数
2
解决办法
7654
查看次数

标签 统计

fetch-api ×1

javascript ×1

jsx ×1

react-native ×1