Javascript - Generate Documentation for Javascript
Case 1 - using Javadoc
http://usejsdoc.org/about-commandline.html
cmd>jsdoc src -r -t haruki -c /path/to/my/conf.json -d docs
The above will generate documentation for all relevant files found in the sr…Read More
Javascript - Script tag in head or bottom of HTML
There are two possibilities for truly unobtrusive scripts:
including an external script file via a script tag in the head section
including an external script file via a script tag at the bottom of the body (before </bod…Read More
Create GUID in JavaScript
Case 1:
jquery.guid.js
var guid = jQuery.Guid.New()
but sometimes, it return an error Guid is undefined, etc ...
Case 2:
function S4() {
return (((1+Math.random())*0x10000)|0).toStr…Read More
Collections, Objects and Arrays in JavaScript
- how to loop through a collection of objects and their properties
- how to check whether an object is null or undefined
- how to find a particular object with a search in a collection or an array
- and so on…
It…Read More
0 comments:
Post a Comment