论坛首页 Web前端技术论坛

有人用Prototype和JSDoc么

浏览 2825 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2006-11-21  
现在被要求在项目中输出类似于javadoc那样的JS API手册, 所以就使用了JSDoc

但是我使用了Prototype,所以没有 function func1() {} 这样的声明方法,似乎JSDoc不吃这一套。

有没有人能给点提示,或者有别的工具?

dojo和qooxdoo都太笨重....
   发表时间:2006-11-22  
Prototype很不错的
可以看一下这个网站
http://www.ssdpw.com
把ajax用到了全站
0 请登录后投票
   发表时间:2006-12-06  
除非自己动手修改JSDoc这个perl程式吧

我目前的代码全都是Object.extend()方式继承的,不能用JSDoc解析,JSDoc不支持hash数据格式


这是prototype的作者的话

== Documentation

Prototype is embarrassingly lacking in documentation. (The source code should
be fairly easy to comprehend; I'm committed to using a clean style with
meaningful identifiers. But I know that only goes so far.)

Much of the problem is that there is no easy way to document it from within the
source code itself. I've tried JSDoc[http://jsdoc.sf.net/] and a Perl script
included with JsUnit[http://www.edwardh.com/jsunit/]; neither groks Prototype's
hash-style class definitions or inheritance scheme. Making them work would
require major changes, and I don't have the time for that right now.
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics