代码之家  ›  专栏  ›  技术社区  ›  Aaron Saunders

flex/actionscript注释

  •  0
  • Aaron Saunders  · 技术社区  · 16 年前

    运行asdoc时无法获取要在actionscript文件中显示的注释。。这是已知的bug吗?

    [Bindable]
    /** test comment */
    public var currentSearchTextValue:String;
    

    在生成的文档中不显示任何内容。。。我做错什么了吗?

    3 回复  |  直到 16 年前
        1
  •  1
  •   Chetan S    16 年前

    虽然我在这里没有看到任何错误,但我会遵循ASDOC最佳实践——按照建议,将注释放在前面带有星号的单独行中 here 看看这是否有效。

    [Bindable]
    /**
    * Test comment
    */
    public var currentSearchTextValue:String;
    
        2
  •  1
  •   Richard Szalay    16 年前

    [Bindable] 实际上生成了包装属性的代码,因此这可能是不可能的。试着移动 [可装订] 听了你的评论,我想你可能会倒霉。

        3
  •  0
  •   Community Mohan Dere    9 年前

    here . 还没有答案。

    [Bindable("someEvent")]
    /*
    * asdoc comment
    * */
    public var currentSearchTextValue:String;
    

    但是这个wud需要您手动调度“someEvent”来完成绑定工作。因此,您可能想单独使用它来生成asdoc,然后将其更改回旧版本。

    推荐文章