2
나는이 방법JSDoc에서 내 _methods를 문서화하는 방법은 무엇입니까?
/**
* Uses the native RegExp object and the native string.replace to replace text
* @name _replace
* @param {String} find Text string or regex to search for
* @param {String} replace Text string or regex for replacing
* @param {String} string String to perfom the replace on
* @returns {String} Returns the string with the text replaced
*/
this._replace = function(find, replace, str) {
var regex;
if(typeof find !== undefined && replace !== undefined && typeof str === 'string') {
regex = new RegExp(find, this._getFlags());
return str.replace(regex, replace, str);
} else {
return false;
}
};
대중 인터페이스 인 replace
방법 구별하기 위해 _
접두어를 포함하는 클래스가 있습니다. _
이있을 때 JSDoc이이 메서드를 문서화하지 않는 이유는 무엇입니까? 제거하면 완벽하게 문서화됩니다. JSDoc을이 방법으로 문서화 할 수있는 방법이 있습니까?
우수합니다. 감사합니다. 나는이 질문에 대한 답변을 포기했다. Stackoverflow에 대한 특이한. – MrMisterMan