使用cross-fetch替换node-fetch和isomorphic-fetch
安装
yarn add cross-fetch
1
使用
import fetch from 'cross-fetch';
1
polyfill的使用方式
import 'cross-fetch/polyfill';
1
编辑 (opens new window)
上次更新: 2023/09/19, 13:33:19
安装
yarn add cross-fetch
使用
import fetch from 'cross-fetch';
polyfill的使用方式
import 'cross-fetch/polyfill';