代码正在等待从https://pokeapi.co/api/v2/pokemon/${id}获取,每次单击事件侦听器时,ID都应该更新。async function nextPokemon(){ const res = await fetch(`https://pokeapi.co/api/v2/pokemon/${id}`);
const pokemon = await re
我想从PokeApi返回口袋妖怪名,但是我有一个错误:类型为'ListViewController.Pokemon‘的值没有下标。@IBOutlet weak var pokemon2: UILabel! @IBOutlet weak var pokemon5: UILabel!self.pokemon3.text
我刚刚开始学习function,我正在尝试用pokemon api构建一个function应用程序,并得到了以下错误:TypeError: pokemon.map is not a function,我不知道为什么/PokemonList'
// eslint-disable-next-line
const [pokemon, setPokemon] = useState("pokemon-1", "