Javascript5 JavaScript Promise (callback & async) https://www.youtube.com/playlist?list=PLuHgQVnccGMBVQ4ZcIRmcOeu8uktUAbxI JavaScript Promise (callback & async) www.youtube.com 구글링 중 좋은 강의를 찾았다 설 연휴때 꼭 봐야지! 2023. 1. 18. Javascript 비동기통신 - XMLHttpRequest(XHR) 업무 중 비동기 통신으로 jsp에서 문자열을 받아오고 싶은데 라이브러리 없이 바닐라js로 해야하는 상황이 있었다. 찾아보니 대표적으로 XMLHttpRequest(XHR)과 Fetch API를 사용하는 두가지 방법이 있었는데 첫번째 방법으로 해결했다. getUserInfo() { let jspRes = null; let trimmedRes = null; let id = null; // XMLHttpRequest 객체 선언 const xhr = new XMLHttpRequest(); // ('방식', 'url', '비동기여부(true가 비동기)') xhr.open('GET', '여기에 url 입력', false); xhr.onreadystatechange = function() { if (xhr.readyS.. 2023. 1. 18. * 자바스크립트 함수 프로토타입 정리 * (00) How to get the type name of an object ? - for a function, .prototype $.prototype jQuery.prototype Array.prototype - for a object, 1) obj.constructor 2) obj.constructor.name 3) obj.constructor.prototype 4) obj.constructor.toLocaleString() 5) Object.prototype.toString.call(obj) 6) Object.getPrototypeOf(obj) (01). prompt function prompt(message?: string, _default?: string): string (02). alert .. 2022. 6. 24. 로또 번호 추첨기 로또 추첨 2022. 6. 22. 이전 1 2 다음