The backspash character (\) has a special purpose in JavaScript string ... Is the \' escape, which represents the single quote character. 예전에 읽었던 내용이였는데, 까먹었던 내용이다 겹따옴표(") 사이에 겹따옴표나 홑따옴표(') 사이에 홑따옴표는 백슬래시(\)와 함께 쓰면 된다는 것을. "\"I\'m ok!?\"" 근데, 더 충격적인 사실은, JavaScript 문자열과 JSON 문자열이 다르다는 사실이다.(자세한 내용은 여기서 보자.)
요즘 프로젝트(=express)를 다운 받았는데, 의존 관계에 있는 프로젝트들이 폴더(= support/expresso 등등..)만 존재하고 있더군요. 관련 내용을 좀 찾아보니, .gitmodules 파일에 해당 프로젝트가 어떤 git 프로젝트를 어떤 폴더에서 참조하고 있는지 정의되어 있다는 사실을 알게 되었습니다. 해당 프로젝트의 '.gitmodules' 파일의 내용. [submodule "support/expresso"] path = support/expresso url = git://github.com/visionmedia/expresso.git [submodule "support/haml"] path = support/haml url = git://github.com/visionmedia/haml..
git tag 명령으로 소스코드에 붙어 있는 tag를 확인.sangpire@BobTop:~/src/node$ git tag all-tests-passed h0.1.100 h0.1.101 h0.1.33 h0.1.90 h0.1.91 ... 생략 ... v0.4.4 v0.4.5 works sangpire@BobTop:~/src/node$ 여기서 가장 마지막 버젼인 v0.4.5로 체크아웃 을 받으려면, sangpire@BobTop:~/src/node$ git checkout v0.4.5 HEAD is now at 787a343... Bump version to v0.4.5 sangpire@BobTop:~/src/node$ 으로 실행하면 됨.
설명 비동기로 호출되는 함수들이 모두 호출되기를 기다린 후, 어떤 작업을 해야 할 경우를 위한 라이브러리. 사용 방법 AsyncTrigger 생성 var aTrigger = new AsyncTrigger(); 감시할 Callback 함수 생성 var cbFunc1 = aTrigger.getCallback(function(response) { // 콜백 함수에서 해야 할 내용 }); var cbFunc2 = aTrigger.getCallback(function(xhrResponse) { // 콜백 함수에서 해야 할 내용 }); onComplete 함수(=이벤트) Override aTrigger.onComplete = function() { // 모든 콜백이 호출된 다음 수행해야 할 작업. } 첨부파일 그리..
foo; // 'undefined' foo(); // this raises a TypeError var foo = function() {}; Due to the fact that var is a declaration, that hoists(=올리다.) the variable name foo before the actual execution of the code starts, foo is already defined when the script gets executed. JavaScript Garden 즉 다음과 같은 코드로 해석된다는 이야기. var foo; foo; // 'undefined' foo(); // this raises a TypeError foo = function() {};
빈 객체가 생성되면, new 연산자는 해당 객체의 프로토타입을 설정한다. 이때 생성된 객체는 자신을 만들어낸 생성자의 prototype 값을 자신의 프로토타입으로 설정한다. 모든 함수에는 prototype이라는 프로퍼티가 있는데, 이것은 함수가 정의될 때 부터 자동으로 새성되고 초기화 된다. prototype 프로퍼티의 초기값은 프로퍼티가 하나 있는 개체로 지정된다. 이 프로퍼티는 constructor 라고 불리우는 데 프로토타입이 연관되어 있는 생성자 함수를 가르킨다. 자바스크립트 완변가이드, 202 페이지
- Total
- Today
- Yesterday
- Git
- 자바스크립트
- tipoftheday
- 커피스크립트
- Commonjs
- dojo
- 리액터
- Node.js
- JavaScript
- 리액티브프로그래밍
- console
- unit test
- 윈도우즈
- intellij
- React
- VIM
- reactiveprogramming
- Windows
- maven
- 스프링인액션
- Configuration
- Java
- Widget
- Eclipse
- 자바
- 빔
- VI
- gvim
- REACTOR
- Coffeescript
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |