create-react-app中使用axios请求本地json文件

create-react-app中使用axios请求本地json文件 在create-react-app创建react应用时模拟本地请求静态json文件必须把静态文件放到public下才可以请求到。