How do you access the JSON when using fetch?

前端 未结 0 728
挽巷
挽巷 2020-12-14 03:30

I am using fetch() to import a json file called map.json, but I can\'t seem to access it. Here is my code:

export function importJSON(url) {
    return fetch(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题