怎么解决fetch的跨域问题

2025-05-14 09:48:31
推荐回答(1个)
回答1:

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