๋น๋๊ธฐ ํต์ 1 [axios] axios ๋น๋๊ธฐ ํต์ ๋ชฉ์ฐจ์ํ ์ฝ๋function callAPI(e) { e.preventDefault(); const url = 'api.test.com'; axios.post(url, { param: //๋ฐ์ดํฐ ์์ผ๋ฉด.. ๋ฃ๊ธฐ }) // ์ ์์ธ ๊ฒฝ์ฐ .then((response) => { if (response.data.success) { location.href = "/"; } }) // ์์ธ ๋ฐ์ .catch((error) => { console.error('๋ฐ์ดํฐ ์ฒ๋ฆฌ .. IT/development 2025. 1. 19. ์ด์ 1 ๋ค์