javascript documentation code example
Example 1: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 2: js doc
function foo(n) {
return n
}
Example 3: javascript javascript
javascript javascript javascript!
Example 4: js
JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled
programming language with first-class functions.
While it is most well-known as the scripting language for Web pages,
many non-browser environments also use it, such as Node.js, Apache
CouchDB and Adobe Acrobat.
Example 5: JS
console.log("Hahahahah");
Example 6: deparam javascript
function params_unserialize(p){
var ret = {},
seg = p.replace(/^\?/,'').split('&'),
len = seg.length, i = 0, s;
for (;i<len;i++) {
if (!seg[i]) { continue; }
s = seg[i].split('=');
ret[s[0]] = s[1];
}
return ret;}