Thursday, April 14, 2011
HTML5 commitment phobia
Microsoft struck by HTML5 commitment phobia • The Register: "HTML5 commitment phobia"
How to convert a string into string array in Javascript?
var onestring = "a,b,c";
var stringlist = points.split(",");
var stringarray = new Array(stringlist.length);
for (i = 0; i < stringlist.length; i++ ) {
stringarray[i] = stringlist[i];
}
How to check even or odd number in Javascript
function isEven(value){ if (value%2 == 0) return true; else return false; }
Subscribe to:
Posts (Atom)