2008-07-31

赞xulplanet的XPCOM文档

文档中有如下提示

This interface is the type of the following properties:
This interface is passed as an argument to the following methods:
This interface is returned from the following methods:

比如我想看nsIDOMDocument怎么创建,但是它没有构造函数
http://www.xulplanet.com/references/xpcomref/ifaces/nsIDOMDocument.html中可以发现它是一些函数的返回类型。于是轻松找到nsIDOMParser.parseFromString等函数。

不想Javadoc,有时一见接口和抽象类就傻了眼。

当然了这涉及到语言的架构,二者还是不能这么比的。 但是还是要称赞这个文档:

这才是给人看的文档!

No comments: