¶My Solution
My solution to task17 is available on jsfiddle:
¶Compared with others’
In top-three team solutions to this task, the third one is very similar to my solution except for the code snippet below:
1 | //跨浏览器事件绑定 |
which also takes browser compatibilities into consideration. Note that: attachEvent
is for IE and addEventListener
is for the others.
¶To Do
- to do study in the near future.