jsdoc propertype方式的注解格式

来源:互联网 发布:php转换大小写 编辑:程序博客网 时间:2024/06/05 18:08

jsdoctool的使用请参考csdn这位同学的博文

http://blog.csdn.net/sstm888/article/details/8982952

补充一点,如果函数是写出propertype这种格式代码,函数注解添加@class即可,代码示例


/** @class */function DeviceEventApi() {console.log("rquire devicejs addon");this.eventapi = require('./lib/deviceEventAddon');}/** * @description   发送信号 * @param   actionName 信号名 data 信号数据 * @return  0 成功 非0 失败 */DeviceEventApi.prototype.eventSendSignal =    function(broadcastname , message){console.log("eventSendSignal : " + broadcastname);var ret = this.eventapi.eventSendSignal(broadcastname,message);return ret;};


0 0
原创粉丝点击