代码如下: const URL = '' let req = URL + word fetch(req) .then(res => res.json()) .then(res => console.log(res) .catch(err => console.log(err)