댓글 검색 목록

[Nodejs] node-fetch - Node.js에 대한 window.fetch

페이지 정보

작성자 운영자 작성일 19-03-07 11:34 조회 403 댓글 0

https://github.com/bitinn/node-fetch


fetch('https://github.com/')
    .then(res => res.text())
    .then(body => console.log(body));


fetch('https://api.github.com/users/github')
    .then(res => res.json())
    .then(json => console.log(json));



댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.