react中fetch请求

1.首先在cmd中下载:react npm install whatwg-fetch 2.在react中引入git import React, { Component } from 'react' import 'whatwg-fetch' 3.请求数据github fetch('https://api.github.com/users/chrissycoyier/repos') .th
相关文章
相关标签/搜索