-
1 minute read
Date κ°μ²΄ let date = new Date(year, monthIndex, day, hours, minutes, seconds, milliseconds); getFullYear() : 4μ리 βμ°λβ κ° λ°ν getMonth() : βμβ λ°ν 1μ = 0 (0~11) getDate() : βμΌβ λ°ν getDay() : βμμΌβ λ°ν 0 = μΌμμΌ ~ 6 = ν μμΌ getHours() : βμκ°β λ°ν getMinutes() / getSeconds() /...
Continue reading...
-
2 minute read
JSON λ΄λ €μ£ΌκΈ° text 보λ€λ JSONμ λ΄λ €μ£Όλ ννλ₯Ό μ μΌ λ§μ΄ μ¬μ© java > com.example.response_Test > controller > ApiController.java package com.example.response_test.controller; import com.example.response_test.dto.User; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("/api") public class ApiController { // text > κ±°μ μμ γ
@GetMapping("/text") public String text(@RequestParam String account){ return account; } // JSON...
Continue reading...
-
3 minute read
μ κ·ννμμ μ΄μ©ν ID / PW μ ν¨μ± κ²μ¬ 리ν©ν λ§ HTML (login.html) <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>λ‘κ·ΈμΈ</title> <link rel="stylesheet" href="style/style.css"> </head> <body> <div id="wrap"> <header id="header"> <div id="headerLogo"></div> </header> <!-- header#header --> <hr> <main id="main" class="flex-container"> <form id="loginForm"> <input type="text" id="uid" placeholder="μμ΄λ...
Continue reading...
-
2 minute read
μ κ·ννμμ μ΄μ©ν ID / PW μ ν¨μ± κ²μ¬ HTML (login.html) <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login</title> <link rel="stylesheet" href="style/style.css"> </head> <body> <div id="wrap"> <header id="header"> <div id="logo"> </div> </header> <!-- header#header --> <main id="main"> <div id="loginArea"> <!-- <form> --> <form name="loginForm" action="https://www.daum.net"...
Continue reading...
-
Less than 1 minute read
μ κ·ννμ (Regular Expression) μ ν΄μ§ λ¬Έμμ ν¨ν΄μ λ§λ€ λ μ¬μ© let regExp = /ν¨ν΄/νλκ·Έ; μ κ·ννμ κ°μ²΄ λ©μλ test() μ κ·ννμκ³Ό μΌμΉνλ λ¬Έμμ΄μ΄ μμΌλ©΄ true, μμΌλ©΄ false λ°ν ex) let reg = /Javascript/; console.log(reg.test('Javascript)); // true console.log(reg.test('Java)); // false μ κ·ννμ κ°μ²΄ νλκ·Έ g λ¬Έμμ΄ μ 체λ₯Ό μ κ·ννμκ³Ό λΉκ΅ μ κ·ννμ κ°μ²΄ ν¨ν΄ [λ¬Έμμ΄] : λ¬Έμμ΄...
Continue reading...