Develop
2013.12.17 14:05
[js] 객체 머지..
Views 9009 Comment 0
나중에 정리해서 다시 올릴것..
function test(a,b,c,d,e){ if(b==undefined) b = 1; if(c==undefined) c = 1; } //test함수 호출시에 a,d,e 만 인자를 전달하고 b, c는 기본값을 사용하고 싶다면? a:10, d:20, e:30 test(a,,,d,e); function test(opt){ var dft = {a:1, b:1, c:1, d:1, e:1}; $.extend(dft, opt); } test({a:10, d:20, e:30});
-
[js] 객체 머지..
-
[js] 간단한 게임 프로토타입 (HTML5 와는 무관)
-
[js] 가운데 새창 뜨는 함수와 이벤트
-
[js] xsl 강의 자료
-
[js] window.open() 속성 사용 방법
-
[js] URL 파싱하기 (jQuery 안쓰고)
-
[js] Text 중 URL 형식을 인식해 단축 URL로 변경
-
[js] Text 값을 클립보드에 복사하기
-
[js] show/hide 이벤트 감시 (Observing show/hide event)
-
[js] selectbox 선택 후 input 박스에 적용
-
[js] php의 number_format() 함수와 같은.. ㅋㅋ
-
[js] One Time Pad key generatorㅡ.,ㅡ;