Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/382.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我能';我无法让Javascript Intellisense XML注释在Visual Studio 2008中完全工作_Javascript_Visual Studio 2008_Intellisense - Fatal编程技术网

我能';我无法让Javascript Intellisense XML注释在Visual Studio 2008中完全工作

我能';我无法让Javascript Intellisense XML注释在Visual Studio 2008中完全工作,javascript,visual-studio-2008,intellisense,Javascript,Visual Studio 2008,Intellisense,首先,我不是Javascript程序员,但我确实有JS程序员向我汇报工作 我正试图通过让添加到VS2008的Javascript Intellisense功能正常工作来改进我们的工作方式 具体地说,现在我正试图弄清楚如何在复杂的数据结构中添加一种类似强类型的功能 到目前为止,我想到了这个: GetDateTimeResponse = function GetDateTimeResponse() { /// <summary>The return value from GetDateT

首先,我不是Javascript程序员,但我确实有JS程序员向我汇报工作

我正试图通过让添加到VS2008的Javascript Intellisense功能正常工作来改进我们的工作方式

具体地说,现在我正试图弄清楚如何在复杂的数据结构中添加一种类似强类型的功能

到目前为止,我想到了这个:

GetDateTimeResponse = function GetDateTimeResponse() {
/// <summary>The return value from GetDateTime</summary>
/// <field name="CurrentDateTime" type="String" mayBeNull="false">The current date time, ISO8601 format UTC</field>
/// <field name="ListOfStrings" type="Array" arrayType="String" mayBeNull="true">An array of strings</field>
/// <field name="SubTypeList" type="Array">An array of complex types</field>
/// <field name="AnInteger" type="Number" integer="true">An integer</field>
/// <field name="AFloat" type="Number">A float</field>
};

GetDateTimeResponse.prototype = {
    CurrentDateTime: "",
    ListOfStrings: new Array(),
    SubTypeList: new Array(),
    AnInteger: 0,
    AFloat: 0.0
};
现在,我得到了类名(
GetDateTimeResponse
),字段名(
CurrentDateTime
,等等)的智能化信息,并从注释中得到了字段的说明。 但是我没有得到类型、mayBeNull、arrayType和integer属性的任何信息。如果我向构造函数中添加一个参数,并使用
注释,则名称、类型和描述都会起作用。 但是integer、mayBeNull等仍然不做任何事情

有什么想法吗

这在VS2008中有效吗

除了对象、数字或字符串之外,是否还有其他“类型”的名称(我想让intellisense做类型数组)

不幸的是,这就是我们可以使用IntelliSense为web服务生成javascript客户端的全部内容

我的参考资料如下:

<xs:element name="GetDateTimeResponse">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="CurrentDateTime" type="xs:dateTime"/>
            <xs:element name="ListOfStrings" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="SubTypeList" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="IDFIeld" type="xs:int"/>
                        <xs:element name="DisplayName" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="AnInteger" type="xs:int"/>
            <xs:element name="AFloat" type="xs:float"/>
        </xs:sequence>
    </xs:complexType>
</xs:element>
var bob = new GetDateTimeResponse();

bob.CurrentDateTime = "";