Skip to content

获取本地json数据

第一种方式:直接使用import将json文件引入

第二种方式:使用axios的get方法获取json数据,json文件必须放在public文件夹下

Image text

如有转载或 CV 的请标注本站原文地址