標記腳本部件文件中需要忽略的文本。
<comment> 在此處書寫文本 </comment>
可以在其他 XML 元素內使用 <comment> 元素來包圍既不是標記,也不是數(shù)據(jù),而是用作其他用途的文本,例如文檔編制。
下面的腳本部件片段演示了位于 <public> 元素內的一個 <comment> 元素。
<public> <comment> 此處實現(xiàn)了一個 Automation 部件,其中包括 "random" 方法和 "uppercaseName" 屬性。 </comment> <method name="random" internalName="getRandomNumber"/> <property name="uppercaseName"> <get internalName="get_ucname"/> <put internalName="put_ucname"/> </property> </public>