高手提领 之 Douglas Crockford: "Theory of the DOM"
2009-10-06 14:16
417 查看
视频地址:http://video.yahoo.com/people/33385
PPT下载:http://yuiblog.com/assets/crockford/theory.zip
the miracle is not miracle
waiting for a hero, or just to be a hero.
纠结中的笔记:
The handler takes an optional event
parameter.
Microsoft does not send an event parameter,
use the global event object instead.
function (e) {
e =
e || event;
var
target = e.target || e.srcElement;
...
}
Trickling is an event capturing
pattern which provides compatibility with the Netscape 4 model. Avoid it.
Bubbling means that the event
is given to the target, and then its parent, and then its parent, and so on
until the event is canceled
e.cancelBubble = true;
if (e.stopPropagation) {
e.stopPropagation();
}
e.returnValue = false;
if (e.preventDefault) {
e.preventDefault();
}
return false;
PPT下载:http://yuiblog.com/assets/crockford/theory.zip
the miracle is not miracle
waiting for a hero, or just to be a hero.
纠结中的笔记:
The handler takes an optional event
parameter.
Microsoft does not send an event parameter,
use the global event object instead.
function (e) {
e =
e || event;
var
target = e.target || e.srcElement;
...
}
Trickling is an event capturing
pattern which provides compatibility with the Netscape 4 model. Avoid it.
Bubbling means that the event
is given to the target, and then its parent, and then its parent, and so on
until the event is canceled
e.cancelBubble = true;
if (e.stopPropagation) {
e.stopPropagation();
}
e.returnValue = false;
if (e.preventDefault) {
e.preventDefault();
}
return false;
相关文章推荐
- "Introduction to the Theory of Computation" Reading notes - Ch. 0 and 1
- "Introduction to the Theory of Computation" Reading notes - Ch. 3
- "Introduction to the Theory of Computation" 1st round done ROUGHLY
- "Introduction to the Theory of Computation" Reading notes - Ch. 2
- The content of element type "web-app" must match……问题之解决办法
- How to: How to disable Java Security Warning "The application requires an earlier version of Java."
- The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tupli
- Problems during startup. Check the".log" file in "metadata" of your workspace.
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
- "The length of the string value exceeds the length configured in the mapping/parameter."}
- 解决Fiddler "creation of the root certificate was not successful”的问题
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
- The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tupli
- Java change contant of the ".java" files
- The content of element type "resultMap" must match "(constructor?,id*,result*,association*,collectio
- Hadoop Installation on a slow ubuntu laptop - Problem of the in-accessible "http://localhost:50030/jobtracker.jsp"
- 解决The content of element type "web-app" must match "(icon?,display
- One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot"
- 打开一个VC工程提示"Not all of the windows in the workspace could be opened."
- End of the "Road to DataStage Certification" D