jsdoc propertype方式的注解格式

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;
};


你可能感兴趣的:(JavaScript,jsdoc,propertype)