您的位置:首页 > Web前端 > JavaScript

jsdoc propertype方式的注解格式

2016-01-27 14:27 369 查看
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;
};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: