<code />
你知道JSDoc中是否有某种标签吗?我需要在我的文档中添加如下代码:
/**
* This function does something see example below:
*
* var x = foo("test"); //it will show "test" message
*
* @param {string} str: string argument that will be shown in message
*/
function foo(str)
{
alert(str);
}
我需要 JSDoc 将注释中的代码显示为代码(如果没有突出显示语法,至少像预先格式化或带有灰色背景的东西)。