回答編集履歴

1

chousei

2020/07/22 07:21

投稿

yambejp
yambejp

スコア114843

test CHANGED
@@ -4,7 +4,9 @@
4
4
 
5
5
  const test=async ()=>{
6
6
 
7
+ const url="・・・";
8
+
7
- const data= await new Promise(resolve=>fetch(url).then(res=>res.json()).then(json=>resolve(json)));
9
+ const data= await fetch(url).then(res=>res.json());
8
10
 
9
11
  console.log(data);
10
12