程式注釋,程式注釋格式

來源:互聯網
上載者:User

程式注釋,程式注釋格式

     /**

* <pre>     // 格式化時保證注釋體內容不變形html標籤

* @description:

         *         描述方法的功能

         *  Order  排序方式 asc/desc  // 多個排序欄位 id asc ,project_name desc 

         *  Order by 排序欄位  ID

* @author:tannc
* @date:2014-9-12上午09:52:14
* --更新資訊 
* @author:tannc
* @date:2014-9-12上午09:52:14
* @version: 1.0

* @param detail

         *                 --入口參數 : 枚舉類應該列出所有的枚舉值 10個以內的。或者@see 註解

         *               --- 如果參數值為空白的情況 。

* @return

*           --   一般標明預設返回什麼值   此時主要描述 返回空和Null 物件不是有個概念  :空 ==null  ;

        *                        Null 物件 ==new    Object();

        *           --  實際返回值

*/

以上是個人在項目中體驗,如有疑問,煩請大家指正!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.