This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| var s = parseObject(data); | |
| console.log(s); | |
| */ | |
| function parseObject(data) { | |
| function f(data, indent, result) { | |
| for (var p in data) { | |
| var s = indent + p + ':'; | |
| if (typeof data[p] != 'object') { | |
| result[result.length] = s + data[p]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| // any codes | |
| $('#time').text(new Date().toString()); | |
| // call own self | |
| var INTERVAL = 10; | |
| setTimeout(arguments.callee, INTERVAL); | |
| })(); |
NewerOlder