Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何正确记录返回多个参数的返回回调。可执行程序:
return callback(error, success);
我将按如下方式记录此返回值:
/** * @return {Function} Returns the callback in the form of `callback(error, success)` */
即——使用返回语句的实际字符串描述。(YUIDoc 并没有能力明确地记录您想要的内容,而无需在文本中进行描述。)