`
sevenduan
  • 浏览: 12090 次
  • 性别: Icon_minigender_1
  • 来自: 珠海
最近访客 更多访客>>
社区版块
存档分类
最新评论

欲善事先利器:javascript 常备工具总结

阅读更多
按使用频率排名:
1,IDE
个人首选aptana IDE,因为用惯了eclipse快捷键。
根据个人喜好,可选intelJ,gvim
2,debugger
熟记debugger的快捷键是高效coding的关键之一。
FF当属firebug,IE除了IE8的debugger没有一个好鸟。
3,API doc
熟练翻阅各种API电子书,HTML 和 jscript的电子书是必备的,根据需要常备YUI,mootools,jquery等。要知道,许多api的function并不是可以那么容易google得到的。
e.g.string.replace(Regex, function)
function f2c(s) {
  var test = /(\d+(\.\d*)?)F\b/g;    //Initialize pattern.
  return(s.replace
    (test,
      function($0,$1,$2) { 
        return((($1-32) * 5/9) + "C");
      }
    )
  );
}

4,小众工具
YSlow, Google page speed, httpwatch ==> performance tuning
Jslint ==> coding convention
YUI Compressor, Jawr => compress
5,茶余饭后的消遣
先看看yui,mootools,jquery,Prototype & script.aculo.us,ext的source code,
然后回来refactor自己项目里成团的FML的js
闲的蛋疼就去51js吹牛起哄
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics