목록분류 전체보기 (374)
Silver Library (Archived)
callback 과 promises 에 대해 간략히 알아보자면. promises (object)는 asynchronous, 그러니까 비동기적인 작업을 의도할 경우. The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. 쓰임세: (의도한 결과가) 성공 또는 실패, 즉 이분법 설계. callback (function)은 argument 로서 다른 function 에 passing 되도록 하는 것. A callback function is a function passed into another function as an argument, which ..
크게 2가지로 나누는 것. 그것은 1. 지금까지 여러 번 응용하며 구성 해 본 API 를 이용한 REST API. [post, put, get, delete] https://www.ibm.com/docs/en/informix-servers/12.10?topic=api-rest-syntax REST API syntax A subset of the HTTP methods is supported by the REST API. These methods are DELETE, GET, POST, and PUT. The examples that are shown in this topic contain line breaks for page formatting; however, the REST API does not a..
크게 4가지의 방식이 있습니다. 1. XMLHttpRequest 2. fetch 3. Axios 4.jQuery 여기서, javascript 만을 이용해서 실현 해 보는 것에 중점을 두고 있습니다. 우선, XMLHttpRequest 의 경우: let request = new XMLHttpRequest(); request.open("GET", "api uri address"); request.send(); request.onload = () => { console.log(request); if (request.status === 200) { console.log(JSON.parse(request.response)); } else { consol.elog(`error ${request.status} ${re..
같이 협동해보며 느낀점은 제가 이를 따로, 스스로가 정립 할 필요가 있어 보인다는 결론에 다다랐습니다. 그래서 json 같은 array 타입의 경우, 어떻게 JS 파일 내에서 구성을 할 것인가? 이 질문은 할 때마다 매번 되네이면서 의문을 가져다주었습니다. 그래서 저는 제가 습득하고 배운 방식으로 진행 해 보려고 합니다. json.parse 와 json.stringify() method 로 말이죠. 1. Object 로 변환하는 법. (json.parse) const userJSONData = `{ "name": "Toko Amano", "age": "17", "city": "Tokyo" }`; const userObj = JSON.parse(userJSONData); console.log(userObj..