First, download the jsdoc-JavaScript documentation tool. Http://sourceforge.net/projects/jsdoc.
1. download and install the Perl environment, ActivePerl-5.10.0.1003-i686-linux-glibc-2.3.2-285500.deb. The website http://www.activeperl.com/has been downloaded. A few simple information may not be considered a registration.
2. Run Perl jsdoc. pl test. js. Generally, an error of the type "can't locate html/template. PM in @ INC..." will be prompted, which means you need to install the HTML: Template Perl module. This section describes how to run Perl-mcpan-e 'Install HTML: template' to complete the installation. However, after a large amount of information is prompted, the installation fails and the installation is depressing. So I downloaded HTML: Template and installed it manually.
3. Install HTML: Template
A. Perl makefile. pl
B. Make
C. Make Test
D. make install (this step requires administrator privileges)
4. Run Perl jsdoc. pl test. JS after installing HTML: Template.
After the js_docs_out folder is successfully run, the HTML generated by test. JS is displayed as follows:
For introduction to jsdoc, see the web page: http://jsdoc.sourceforge.net/
For the first time, you can directly send a message under Ubuntu.ArticleHaha.