Taro Fetch polyfill
Taro 3+ 非官方 W3C fetch()
API 补丁
用法
import 'taro-fetch-polyfill';
fetch('https://api.github.com')
.then(response => response.json())
.then(console.log);
W3C fetch() API polyfill for Taro 3+
Homepage Repository npm TypeScript Download
npm install taro-fetch-polyfill@0.5.0-rc.0
Taro 3+ 非官方 W3C fetch()
API 补丁
import 'taro-fetch-polyfill';
fetch('https://api.github.com')
.then(response => response.json())
.then(console.log);