Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.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
Actionscript 3 是否将@包含在ASDoc注释中,且无任何错误?_Actionscript 3_Apache Flex_Asdoc - Fatal编程技术网

Actionscript 3 是否将@包含在ASDoc注释中,且无任何错误?

Actionscript 3 是否将@包含在ASDoc注释中,且无任何错误?,actionscript-3,apache-flex,asdoc,Actionscript 3,Apache Flex,Asdoc,如果ASDoc中有@符号,代码将被编译,但ASDoc的生成器将发出无法理解的错误消息 /** * Removes the following characters which are forbidden: * @/\"#$%&'()*:;<=>!? */ public function removeForbiddenChars(str:String):String /** *删除以下禁止使用的字符: * @/\"#$%&'()*:;!? */ 公共函数re

如果ASDoc中有
@
符号,代码将被编译,但ASDoc的生成器将发出无法理解的错误消息

/**
 * Removes the following characters which are forbidden:
 *    @/\"#$%&'()*:;<=>!?
 */
public function removeForbiddenChars(str:String):String
/**
*删除以下禁止使用的字符:
*    @/\"#$%&'()*:;!?
*/
公共函数removeBankedenChars(str:String):String
有没有办法在ASDoc中包含
@
符号而不引发错误?

根据:

ASDoc将注释中的所有HTML标记和标记实体传递到输出。因此,如果要在注释中使用特殊字符,请使用HTML代码等效项输入它们。例如,要在注释中使用小于(
)符号,请使用
使用at符号(
@
)在注释中,使用
@;
否则,这些字符将在输出中解释为文本HTML字符

尽管文档中未提及,但不允许使用的第四个符号是
&
,必须用
&;
替换

因此,如果要按照示例ASDoc的说明进行操作:

/**
 * Removes the following characters which are forbidden:
 *    &#64;/\"#$%&amp;'()*:;&lt;=&gt;!?
 */
public function removeForbiddenChars(str:String):String
在编辑器中查看注释时可能不清楚,但一旦ASDoc被编译成HTML,它就会清楚。也许可以用不使用特殊字符的方式来表达注释:

Removes /\"#$%'()*:;=!? as well as the 'at' symbol (&#64;), the ampersand symbol (&amp;), the 'less than' symbol (&lt;), and the 'greater than' symbol (&lt;)
根据:

ASDoc将注释中的所有HTML标记和标记实体传递到输出。因此,如果要在注释中使用特殊字符,请使用HTML代码等效项输入它们。例如,要在注释中使用小于(
)符号,请使用
使用at符号(
@
)在注释中,使用
@;
否则,这些字符将在输出中解释为文本HTML字符

尽管文档中未提及,但不允许使用的第四个符号是
&
,必须用
&;
替换

因此,如果要按照示例ASDoc的说明进行操作:

/**
 * Removes the following characters which are forbidden:
 *    &#64;/\"#$%&amp;'()*:;&lt;=&gt;!?
 */
public function removeForbiddenChars(str:String):String
在编辑器中查看注释时可能不清楚,但一旦ASDoc被编译成HTML,它就会清楚。也许可以用不使用特殊字符的方式来表达注释:

Removes /\"#$%'()*:;=!? as well as the 'at' symbol (&#64;), the ampersand symbol (&amp;), the 'less than' symbol (&lt;), and the 'greater than' symbol (&lt;)