jsdoc propertype方式的注解格式
2016-01-27 14:27
411 查看
jsdoctool的使用请参考csdn这位同学的博文
http://blog.csdn.net/sstm888/article/details/8982952
补充一点,如果函数是写出propertype这种格式代码,函数注解添加@class即可,代码示例
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; };
相关文章推荐
- JS 截取字符串substr 和 substring方法的区别
- JSON与字符串互相转换的几种方法
- JSP中的注释操作及JSP中的三种Scriptlet
- ConvNetJS源代码解析第二篇
- js页面跳转整理
- js入门——Dom基础
- 服务端嵌套json
- erlang 用rfc4627 带中文的json格式
- JS操作JSON总结
- js标签放在html的什么位置比较好
- 用window.onerror捕获并上报Js错误的方法
- js存cookie
- String与JSON的转换和Array转String
- javascript下的瀑布流效果
- 再谈JavaScript异步编程
- c标签 if else c标签 总结
- ClickSpark.js实现粒子特效
- 简单介绍jsonp 使用小结
- 理解javascript异步编程
- QT和JavaScript互调