Documentar el codigo JavaScript febrero 14, 2007
Posted by superpiwi in Javascript.trackback
Si necesitas documentar el codigo JavaScript puedes emplear JSDoc.
Es una herramienta muy sencilla (eso si, necesitas tener un interprete de perl instalado en la maquina). Para documentar la sintaxis es:
perl jsdoc.pl <tufichero.js>
Ejemplo para el fichero «util.js» con este contenido:
/**
* @fileoverview Libreria con funciones de utilidad
*
* @author jose
* @version 0.1
*/
/**
* Muestra un mensaje de texto
* @param {String} metodo nombre del metodo
* @param {String} mensaje mensaje a mostrar
* @returns {integer} el codigo de retorno 0
*/
function trazas(metodo,mensaje)
{
alert("["+metodo+"]:"+mensaje);
return 0;
}
//--------
Al ejecutar:
perl jsdoc.pl util.js
se generan una serie de ficheros HTML en el directorio con la documentacion de la libreria javascript. El resultado es muy vistoso:
esta chevere
I really treasured your webpage as well as , points.
That you will be tremendous.
Thank you intended for providing this valuable so aspire to create in addition of
the stuff in the coming years.
Phenomenal give good results retaining yuor web blog wash and therefore
high-quality without the need of nearly any junk mail.
Do you realy get any ideas when it comes to my very
own web page to stay them free of fakes?
And also any possibilities regarding how to yield using fabulous prime quality
similar to that of you?
I’m sorry in my language 🙂 it is often never ever all of my natural code, high hopes it is easier to are aware of
super! i’m so glad that if found your cool page I will be marking
this for later! – real estate band is an interest of mine and and
your «Documentar el codigo JavaScript | Java.Lang.NullPointer»
article is without doubt great work.
great stuff, I’ll check back again real soon!
Em 2014 os conhecidos estilistas Samuel Yang e também Yifang Wan lançaram primeiro tênis com iluminação de led para adultos chamado
SIMULATION e também foi concebido para ser um tenis luxuoso. http://cyprusmirror.com/vanity-mirror-2/