---
title: "欲善事先利器：javascript 常备工具总结"
author: "sevenduan"
date: "2009-10-26T23:32:23Z"
tags: ["Aptana", "JavaScript", "Mootools", "YUI", "jQuery"]
slug: "javascript"
draft: false
lastmod: "2009-10-26T23:32:23Z"
id: 504691
url: "https://sevenduan.iteye.com/blog/504691"
---

按使用频率排名：
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)

```js

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吹牛起哄