Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
Last active November 16, 2016 11:56
Show Gist options
  • Save nishinoshake/e00c67efb92e66292e1da38b3e50e5e3 to your computer and use it in GitHub Desktop.
Save nishinoshake/e00c67efb92e66292e1da38b3e50e5e3 to your computer and use it in GitHub Desktop.
jsdocの書き方

##書き方 index.jsのように書く

##実行 ###npmモジュールがあるので使う npm install jsdoc ./node_modules/.bin/jsdoc index.js

github

/**
* 音声管理
*
* @constructor
*/
Index.Sound = function() {
this.load();
}
Index.Sound.prototype = {
/**
* 音声ファイルのプリロード
*
* @return {boolean} 真偽値を返す
*/
load: function() {
return true;
},
/**
* 音声の再生
*
* 詳しい説明があったらここに書く
*
* @param {string} label 再生する音声の名前
*/
play: function(label) {
this.sound[label].play();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment