我无法弄清楚Google Apps脚本中如何正确显示这一点.我需要它在jsdoc输出中显示新行(例如,当函数工具提示窗口出现在Spreadheet函数中时.)我尝试过html,
但它只是呈现为文本而不是换行符.
例如:
/**
* Converts the prefixed value to the specified base.
* Requires one of the following prefixes:
* '0b' Base 2: binary
* '0q' Base 4: quaternary
* '0o' Base 8: octal
* '0x' Base 16: hexadecimal
*
* @param {string} Value The prefixed value to convert.
* @param {number} To The base to convert to.
* @return The converted base.
* @customfunction
*/
function BASEP(Value, To) {
Run Code Online (Sandbox Code Playgroud)
这只是呈现一个文本blob:
Summary:
Converts the prefixed value to the …Run Code Online (Sandbox Code Playgroud) 我正在使用jsdoc记录我的代码,到目前为止很好,我有如下的评论
...
* @property {string} mode - mode of display 'video' - display video or 'audio' - play only the audio.
* @property...
Run Code Online (Sandbox Code Playgroud)
它来自html文档之类的
| ... | |
| mode | string | mode of display 'video' - display video or 'audio' - play only the audio.|
| ... | |
Run Code Online (Sandbox Code Playgroud)
我希望它看起来像
| ... | | |
| mode | string | mode of display |
| | | 'video' - display video |
| | | 'audio' - play …Run Code Online (Sandbox Code Playgroud)