1.
function Leak() {
var div = document.getElementById('d');
div.onclick = functon() { alert("hi!"); }
}
간단한 코드인데 IE 에서 memory leak 이 발생한다고 한다.
이걸 충분히 반복해서 실행하면 IE 가 crash 되고 만다는데...
2.
Programming Language Theory 측면에서 javascript 를 다시 생각해볼 필요 있음.
Week Typing, OOP, Closure, Fuctional Lanaguage 등이 키워드.
몇 가지 statement 들
- Everything in JavaScript is Object.
- Every object is mutable.
- dot operator is equivalent to de-refencing by hash. ex) foo.bar === foo["bar"].
- Functions are always closure.
3. JavaScript Library 들
http://developer.yahoo.net/yui/
4. 추천 도서
Javascript : Definitive Guide
Modern Web Design Using Javascript & DOM
5. Tip
Javascript Shell :http://www.squarefree.com/shell/shell.html
-- by ravic
댓글