Simple Javascript Formatter

最近在玩 javascripts shell 的時候突然想到可以利用 Firefox 的 javascript engine 的特性來作 javascript formatter, 所以就作了這個東西:Simple Javascript Formatter. 其實也沒什麼大學問, 也不過就是 eval() 之後再 toString() 而已, 玩玩看吧 :)

2 Responses to “Simple Javascript Formatter”


  1. 1 harrywu Jun 30th, 2006 at 13:30:50 UTC

    It is helpful to me. And thanks a lot for your explaining.

  2. 2 阿毅 Apr 5th, 2007 at 14:5:43 UTC

    很棒!简单直接。虽然有些许损失(注释全没了),

Leave a Reply




Google Friend Connect