倒计时优化点滴
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

倒计时优化点滴

  • 1,856 views
Uploaded on

懒懒keynote, http://www.oncoding.cn/2011/javascript-flyweight/

懒懒keynote, http://www.oncoding.cn/2011/javascript-flyweight/

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • cool
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
1,856
On Slideshare
1,038
From Embeds
818
Number of Embeds
16

Actions

Shares
Downloads
13
Comments
1
Likes
4

Embeds 818

http://www.oncoding.cn 709
http://feed.feedsky.com 41
http://localhost 19
http://ec.oncoding.cn 13
http://www.zhuaxia.com 7
http://reader.youdao.com 7
http://www.itfeed.cn 5
http://note.sdo.com 4
http://xianguo.com 3
http://cache.baidu.com 2
http://www.chengxuyuans.com 2
http://theoldreader.com 2
http://webcache.googleusercontent.com 1
http://rss.zobor.me 1
http://feeds.feedburner.com 1
http://old.xianguo.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. new Timer etaivar aTimer = Ju.app.timer.create( { timeEnd: timeEnd, timeCurrent: timeCurrent, container: theTimer, style: simple, callback: function(handler){ console.log(handler); } });
  • 2. ‣‣‣‣‣‣
  • 3. WTF? ....
  • 4. 1. • ; •
  • 5. setInterval : 5mins / hoursetTimeout : 10min / hour 10+ / day
  • 6. 2. •
  • 7. 3. • •
  • 8. 3. • •
  • 9. -a.b.
  • 10. -a.b.
  • 11. -b.
  • 12. -before:
  • 13. -a. innerHTML
  • 14. -b. replaceHTML When innerHTML isn’t Fast Enough
  • 15. -before innerHTML replaceHTMLff3.6 2600 ff3.6 600 ff3.6 3000ie8 6100 ie8 900 ie8 4200ie6 6300 ie6 1200 ie6 5500
  • 16. -<p class="dsec">.6</p>
  • 17. -dsec.gif
  • 18. -html
  • 19. - “ ”var aTimer = Ju.app.timer.create( { timeEnd: timeEnd, timeCurrent: timeCurrent, timeLeft: 0, container: theTimer, callback: function(handler){ alert(‘time’s up!’); } });Ju.app.timer.remove(aTimer);
  • 20. - “ ”
  • 21. - “ ”
  • 22. - “ ”
  • 23. / Tips
  • 24. / Tips - 1. vs timer• timer•• setInterval?
  • 25. / Tips - 1. vs timer“ ” “ ”
  • 26. / Tips - 1. vs timer
  • 27. / Tips - 1. vs timer
  • 28. / Tips - 1. vs timer =>+
  • 29. / Tips- 2. setTimeout vs setInterval “ bug”
  • 30. / Tips- 2. setTimeout vs setInterval setTimeout or setInterval?
  • 31. / Tips 2. setTimeout vs setInterval How JavaScript Timers Work
  • 32. / Tips - 2. setTimeout vs setIntervalSetTimeout
  • 33. Google I/O Conference: HTML5 Countdown Finale
  • 34. Google I/O Conference: HTML5 Countdown Finale
  • 35. checker “ ”
  • 36. Q /A