Actionscript 3 是否将@包含在ASDoc注释中,且无任何错误?
如果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的生成器将发出无法理解的错误消息
/**
* 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:
* @/\"#$%&'()*:;<=>!?
*/
public function removeForbiddenChars(str:String):String
在编辑器中查看注释时可能不清楚,但一旦ASDoc被编译成HTML,它就会清楚。也许可以用不使用特殊字符的方式来表达注释:
Removes /\"#$%'()*:;=!? as well as the 'at' symbol (@), the ampersand symbol (&), the 'less than' symbol (<), and the 'greater than' symbol (<)
根据:
ASDoc将注释中的所有HTML标记和标记实体传递到输出。因此,如果要在注释中使用特殊字符,请使用HTML代码等效项输入它们。例如,要在注释中使用小于(
)符号,请使用
和
使用at符号(@
)在注释中,使用@;
否则,这些字符将在输出中解释为文本HTML字符
尽管文档中未提及,但不允许使用的第四个符号是&
,必须用&;
替换
因此,如果要按照示例ASDoc的说明进行操作:
/**
* Removes the following characters which are forbidden:
* @/\"#$%&'()*:;<=>!?
*/
public function removeForbiddenChars(str:String):String
在编辑器中查看注释时可能不清楚,但一旦ASDoc被编译成HTML,它就会清楚。也许可以用不使用特殊字符的方式来表达注释:
Removes /\"#$%'()*:;=!? as well as the 'at' symbol (@), the ampersand symbol (&), the 'less than' symbol (<), and the 'greater than' symbol (<)