react学习笔记之fetch数据请求和使用

安装npm install whatwg-fetch –save-dva; 要么bower install fetch; 要么yarn add whatwg-fetch导入:import fetch from ‘dva/fetch’;用法 HTMLfetch('/users.html') .then(function(response) { return response.text() }).th...

评论0

首页 导航 会员
邮箱 TOP