As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
我习惯了Atlas,其中首选的(据我所知)方法是使用XML注释,例如:
/// <summary>
/// Method to calculate distance between two points
/// </summary>
///
/// <param name="pointA">First point</param>
/// <param name="pointB">Second point</param>
///
function calculatePointDistance(pointA, pointB) { ... }
最近,我一直在研究其他第三方JavaScript库,我看到的语法如下:
/*
* some comment here
* another comment here
* ...
*/
function blahblah() { ... }
另外,是否有JavaScript的API生成器可以读取首选的注释样式?