Fetch method works outside a function but doesn't work inside a function

后端 未结 0 622
难免孤独
难免孤独 2021-01-11 21:52

I\'m just getting started with javascript so please bear with me. I\'m trying to fetch a value from an API but I\'m struggling with it.

This "works" as in i

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