fetch1 28Jan2020 TIL Body.json() :When the fetch is successful, we read and parse the data using json(), then read values out of the resulting objects as you'd expect and insert them into list items to display our product data. (출처 : mdn) fetch(server, { method: "GET", headers: { "Content-Type": "application/json" } }) .then(res => res.json()) .then(json => { app.data = json; return callback !== undefined ? callback.. 2020. 1. 29. 이전 1 다음