10/02
10/02
1.a태그에서의 함수 호출
a 태그에서의 함수호출
a 태그에는 함수 호출시 리턴 값이 있으면 리턴 값을 보여주기 위해서 브라우저에 나타납니다. 그래서 보통 a 태그에 스크립트 함수를 호출할때는 리턴 값을 주지 않습니다. 예1) 함수에 리턴값
marga.tistory.com
원인: html에 변수를 그냥 넣음
해결: 변수 앞뒤로 ++넣음
2.자바스크립트로 오버로딩 구현하기
arguments object를 사용해서 구현
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments
The arguments object - JavaScript | MDN
arguments is an Array-like object accessible inside functions that contains the values of the arguments passed to that function.
developer.mozilla.org
3. JSTL, Javascript
https://honinbo-world.tistory.com/70
Javascript와 JSTL 혼용할 때 숙지해야할 것
기본적으로 서버가 작동할 때 JAVA > JSTL > HTML > Javascript 순서로 동작한다. 웹 개발을 하다보면 서버에서 넘어온 값을 view에 뿌려줄 때 Javascript와 jstl을 혼용해야 할 때가 많다. list1.push("${item1.name}")
honinbo-world.tistory.com