ITeye博客

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

sevenduan · 2009-10-26 23:32 · javascript · Mootools · YUI · jQuery · Aptana · JavaScript · Markdown

按使用频率排名: 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吹牛起哄

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。