刚兴趣的可以参考:
http://www.cnblogs.com/littledu/archive/2011/05/08/2040298.html
http://www.cnblogs.com/Zjmainstay/archive/2012/07/15/cnblogs_runHTML.html
http://www.cnblogs.com/binyong/archive/2009/05/02/1447949.html
想想也是醉了,花那么多时间研究这过时的东西,一个runjs就搞定了。。。
附各个主流javascript在线运行:http://www.zhihu.com/question/22487701