일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Spring CORS
- Spring DTO
- javascript 기초
- react quill custom
- JPA Update\
- Spring Controller return
- react react-router-dom v6
- step 테이블
- Spring JPA
- 텍스트가 많은 경우
- SpringBatch 스키마
- JPA Insert
- springbatch chunk
- Docker Windows 설치
- javascrpit 기초
- Spring Entity
- react Page
- 코드 중복제거
- react Quill
- react forwardRef
- editor Quill
- react
- spring
- Javascript
- react jsx if
- spring security
- spring builder
- springbatch
- javascript 함수
- react link
- Today
- Total
목록Javascript (8)
천천히 알아보는 코딩공부
+ 연산자 var add1 = 1 + 2; var add2 = 'my' + 'string'; var add3 = 1 + 'string'; var add4 = 'string' + 2; console.log(add1); // (출력값) 3 console.log(add2); // (출력값) my string console.log(add3); // (출력값) 1string console.log(add4); // (출력값) string2 == (동등) 연산자와 === (일치) 연산자 차이점 - ==연산자는 비교하려는 피연산자의 타입이 다를 경우에 타입변환을 거친 다음 비교한다 - === 연산자는 피연산자의 타입이 다를 경우에 타입을 변경하지 않고 비교한다. console.log(1 == '1'); (출력값) tr..

참조 타입의 특성 var objA = { val : 40 }; var objB = objA; console.log(objA.val); // (출력값) 40 console.log(objB.val); // (출력값) 40 objB.val = 50; console.log(objA.val); // (출력값) 50 console.log(objB.val); // (출력값) 50 ※ 자바스크립트에서 숫자, 문자열, 불린값, null, unedfined 같은 기본 타입을 제외한 모든 값은 객체다. 배열이나 함수 또한 객체로 취급되고 이러한 객체는 자바스크립트에서 참조 타입이라고 부른다. 이것은 객체의 모든 연산이 실제 값이 아닌 참조값으로 처리되기 때문. var a = 100; var b = 100; var objA ..
javascript 기본타입 자바스크립트에서 기본 타입은 숫자, 문자열 불린값을 비롯해 null, undefined라는 타입이 있다. 자바스크립트는 느슨한 타입 체크 언어다. 느슨한 타입, 강력한 타입 Ex) /* JavaScript Example (loose typing) */ var a = 13; // Number 선언 var b = "thirteen"; // String 선언 /* Java Example (strong typing) */ int a = 13; // int 선언 String b = "thirteen"; // String 선언 1. 숫자 C 언어의 경우 정수냐 실수냐에 따라 int, long, float, double 등과 같은 다양한 숫자 타입이 존재하지만, 자바스크릡트는 하나의 숫자..

https://openweathermap.org/ Сurrent weather and forecast - OpenWeatherMap Leaving everything behind, people are fleeing conflict in Ukraine. They need shelter, food, and water. When you subscribe to our service, you can join us to help with donation of just of 20. Openweather will add 40 to each donation and send it to Disastrou openweathermap.org 1. 위에 링크를 들어가서 회원가입또는 로그인 해준다 2. 로그인 후 API 메뉴 클릭..
weather.js function onGeoOk(position) { const lat = position.coords.latitude; const lng = position.coords.longitude; console.log("You live in",lat, lng); } function onGeoError() { alert("error"); } navigator.geolocation.getCurrentPosition(onGeoOk, onGeoError); weather API를 이용하기전에 현재 사용중인 위치를 구해준다. navigator.geolocation.getCurrentPosition 현재 위도, 경도 등 위치(좌표) 알려줍니다 OnGeoOk 함수 성공할때 출럭 coords.latitud..
todo.js const toDoForm = document.getElementById("todo-form"); const toDoInput = toDoForm.querySelector("input"); const toDoList = document.getElementById("todo-list"); let toDos = []; const TODOS_KEY = "todos" function saveToDos(){ localStorage.setItem("todos", JSON.stringify(toDos)); } function deleteToDo(event){ const li = event.target.parentElement; todos = todos.filter(toDo => toDo.id !== p..