์ ์ฒด ๊ธ
[์๋ฐ์คํฌ๋ฆฝํธ] how to remove array element javascript
๊ตฌ๊ธ์ There are different methods and techniques you can use to remove elements from JavaScript arrays: pop - Removes from the End of an Array. shift - Removes from the beginning of an Array. splice - removes from a specific Array index. filter - allows you to programatically remove elements from an Array. splice(์์์ , ์ง์ธ๊ฐฏ์) ์ฝ๋ ์์ function deleteTask(id) { for (let i = 0; i < taskList.length; i++) ..
generate random id ์ ๋ํ ๊นํ๋ธ ๋ต๋ณ
ID - a unique ID/name generator for JavaScript (github.com) ID - a unique ID/name generator for JavaScript ID - a unique ID/name generator for JavaScript. GitHub Gist: instantly share code, notes, and snippets. gist.github.com I strongly recommend using performance.now().toString(36) instead of Date.now - since it offers a higher precision date (ref: https://developer.mozilla.org/en-US/docs/Web/..
ํ์ ์คํฌ๋ฆฝํธ ๋ก๋ฉ ์ํ ํ์ ์์
type LoadingState = { state: "loading"; }; type SuccessState = { state: "success"; response: { body: string; }; }; type FailState = { state: "fail"; reason: string; }; type ResourceLoadState = LoadingState | SuccessState | FailState; function printLoginState(state: ResourceLoadState) { switch (state.state) { case "loading": console.log("๐ loading..."); break; case "success": console.log("๐ loade..
ํ์ ์คํฌ๋ฆฝํธ ์ขํ ์ด๋ ์์
type direction = "up" | "down" | "left" | "right"; let position = { x: 0, y: 0 }; function move(dir: direction) { if (dir === "up") { position.y++; } if (dir === "down") { position.y--; } if (dir === "left") { position.x--; } if (dir === "right") { position.x++; } } console.log(position); // { x: 0, y: 0} move("up"); console.log(position); // { x: 0, y: 1} move("down"); console.log(position); //..
ํ์ ์คํฌ๋ฆฝํธ ๊ณ์ฐ๊ธฐ ํจ์ ๋ง๋ค๊ธฐ
type calculateStr = "add" | "substract" | "multiply" | "divide" | "remainder"; function calculate(calStr: calculateStr, num1: number, num2: number) { if (calStr == "add") { return num1 + num2; } if (calStr == "substract") { return num1 - num2; } if (calStr == "multiply") { return num1 * num2; } if (calStr == "divide") { return num1 / num2; } if (calStr == "remainder") { return num1 % num2; } thr..
[์ด์ ํด๊ฒฐ] STS mvc ํ ํ๋ฆฟ์ด ์๋ ๊ฑด
[spring ๊ธฐ์ด] mvc project ์์ Spring Legacy Project์ ์๋ฌด๊ฒ๋ ์์๋ (tistory.com) [spring ๊ธฐ์ด] mvc project ์์ Spring Legacy Project์ ์๋ฌด๊ฒ๋ ์์๋ https://integer-ji.tistory.com/183 [spring ๊ธฐ์ด] sts ์ค์ , pom.xml ์ค์ , java ๋ฒ์ ๋ง์ถ๊ธฐ [spring ๊ธฐ์ด] sts ์ค์ , pom.xml ์ค์ , java ๋ฒ์ ๋ง์ถ๊ธฐ java spring๋ ํ์ฌ ํ์ฌ๋ฅผ ๋ค๋๋ฉฐ ์ฌ์ฉํ๊ณ ์์ผ.. integer-ji.tistory.com ์ ๋งํฌ๋๋ก ํ๋ฉด ์ฌ๋งํ ์ผ์ด์ค๊ฐ ํด๊ฒฐ๋๋ค๊ณ ํ์์ผ๋ ๋์ STS๋ ๋ฌด๋ฐ์... STS์ Spring Legacy Project๊ฐ ์์ ๊ฒฝ์ฐ?? (tist..
์คํ๋ง์ ์ํ ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ (์ค์น๋ฅผ ์ํ ๋ค์ด๋ก๋)
spring์ผ๋ก ๊ฐ๋ฐํ๊ธฐ ์ํด ํ์ํ ๋๊ตฌ๋ค ์๋ฐ๊ฐ๋ฐ๋๊ตฌ : Java11 ํตํฉ๊ฐ๋ฐํ๊ฒฝ: STS, IntelliJ ์น์๋ฒ: Tomcat9 ์น๋ธ๋ผ์ฐ์ : ํฌ๋กฌ ๋ฐ์ดํฐ๋ฒ ์ด์ค : MySQL 5.7 ๊ธฐํ : vscode, git, aws, maven *์๋์ฐ ๊ธฐ์ค Archived OpenJDK GA Releases (java.net) ์๋์ฐ OpenJDK 11 ์ค์น 12.0.2 (build 12.0.2+10) Windows 64-bit zip (sha256) 188M sts ๋ค์ด๋ก๋ Spring Tool Suite 3 · spring-projects/toolsuite-distribution Wiki (github.com) Spring Tool Suite 3.9.17 (New and Noteworthy) full d..