Visual Studio中用于Ajax和JavaScript库的IntelliSense
我知道如何为使用-vsdoc.js文件,而jQuery文件很容易找到。还有哪些其他JavaScript、Ajax和DHTML库有它们?我在哪里可以找到这些文件?此外,是否有一份文件概述了-vsdoc.js文件的规范?Betrand LeRoy关于JavaScript IntelliSense格式的一篇优秀博文: 简言之: 摘要-用于描述功能/方法或事件。语法:Visual Studio中用于Ajax和JavaScript库的IntelliSense,javascript,visual-studio,Javascript,Visual Studio,我知道如何为使用-vsdoc.js文件,而jQuery文件很容易找到。还有哪些其他JavaScript、Ajax和DHTML库有它们?我在哪里可以找到这些文件?此外,是否有一份文件概述了-vsdoc.js文件的规范?Betrand LeRoy关于JavaScript IntelliSense格式的一篇优秀博文: 简言之: 摘要-用于描述功能/方法或事件。语法: <summary locid="descriptionID">Description</summary> 说
<summary locid="descriptionID">Description</summary>
说明
参数-描述函数/方法的参数。语法:
<param name="parameterName"
mayBeNull="true|false" optional="true|false"
type="ParameterType" parameterArray="true|false"
integer="true|false" domElement="true|false"
elementType="ArrayElementType" elementInteger="true|false"
elementDomElement="true|false"
elementMayBeNull="true|false">Description</param>
说明
param标记用于描述方法或构造函数的参数。param标记的顺序应与方法或构造函数的参数相同,并且具有相同的名称
函数返回类型-语法:
<returns
type="ValueType" integer="true|false" domElement="true|false"
mayBeNull="true|false" elementType="ArrayElementType"
elementInteger="true|false" elementDomElement="true|false"
elementMayBeNull="true|false">Description</returns>
<value
type="ValueType" integer="true|false" domElement="true|false"
mayBeNull="true|false" elementType="ArrayElementType"
elementInteger="true|false" elementDomElement="true|false"
elementMayBeNull="true|false"
locid="descriptionID">Description</value>
<field name="fieldName" type="FieldType"
integer="true|false" domElement="true|false" mayBeNull="true|false"
elementType="ArrayElementType" elementInteger="true|false"
elementDomElement="true|false" elementMayBeNull="true|false"
locid="descriptionID">Description</field>
说明
值类型-描述属性(不应将“摘要”用于道具)-语法:
<returns
type="ValueType" integer="true|false" domElement="true|false"
mayBeNull="true|false" elementType="ArrayElementType"
elementInteger="true|false" elementDomElement="true|false"
elementMayBeNull="true|false">Description</returns>
<value
type="ValueType" integer="true|false" domElement="true|false"
mayBeNull="true|false" elementType="ArrayElementType"
elementInteger="true|false" elementDomElement="true|false"
elementMayBeNull="true|false"
locid="descriptionID">Description</value>
<field name="fieldName" type="FieldType"
integer="true|false" domElement="true|false" mayBeNull="true|false"
elementType="ArrayElementType" elementInteger="true|false"
elementDomElement="true|false" elementMayBeNull="true|false"
locid="descriptionID">Description</field>
说明
字段-用于描述JavaScript类中的字段-语法:
<returns
type="ValueType" integer="true|false" domElement="true|false"
mayBeNull="true|false" elementType="ArrayElementType"
elementInteger="true|false" elementDomElement="true|false"
elementMayBeNull="true|false">Description</returns>
<value
type="ValueType" integer="true|false" domElement="true|false"
mayBeNull="true|false" elementType="ArrayElementType"
elementInteger="true|false" elementDomElement="true|false"
elementMayBeNull="true|false"
locid="descriptionID">Description</value>
<field name="fieldName" type="FieldType"
integer="true|false" domElement="true|false" mayBeNull="true|false"
elementType="ArrayElementType" elementInteger="true|false"
elementDomElement="true|false" elementMayBeNull="true|false"
locid="descriptionID">Description</field>
说明
如何将IntelliSense包含在外部JavaScript文件中,以下语法作为JavaScript文件的第一行:
<reference path="path/to/the/script/reference.js"
assembly="Assembly.Name" name="ScriptResourceName.js"/>
你可以在这里找到适用于MooTools的Intellisense:有人建造了一个非常不错的平台。我使用它,它工作得很好 我写这篇文章是为了总结(调查)vsdoc的哪些部分在VS2010中用于帮助Intellisense: