This file contains 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
cyouCallback([ | |
{ | |
"url": "/ty/media/20130415/55113.shtml", | |
"date": "2013-04-15", | |
"title": "【优酷】超燃!玩家激情解说桃园竞技场", | |
"channel":"媒体" | |
}, | |
{ | |
"url": "/ty/media/20130415/55112.shtml", | |
"date": "2013-04-15", |
This file contains 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 fs = require('fs'); | |
var pathSep = require('path').sep; | |
var Path = require("path"); | |
var directory = module.exports = {}; | |
directory.mkdirSync = function __directory_mkdirSync__(path) { | |
var dirs = Path.normalize(path).split(pathSep); | |
var root = ""; |
This file contains 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
{ | |
//Object.extend comes from jQuery | |
extend: function () { | |
var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, | |
i = 1, | |
length = arguments.length, | |
deep = false, | |
toString = Object.prototype.toString, | |
hasOwn = Object.prototype.hasOwnProperty, | |
push = Array.prototype.push, |
This file contains 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 Extend based on Prototype | |
* @author ijse | |
*/ | |
exports.extend = function(sub, superclass) { | |
var F = function() {}; | |
F.prototype = superclass.prototype; | |
sub.prototype = new F(); | |
sub.prototype.constructor = sub; | |
sub.superclass = superclass.prototype; |
This file contains 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
/** | |
* Notification | |
* @author: ijse | |
* @require: Chrome10+ | |
* @params: Same as webkitNotifications.create[HTML]Notification() | |
* @usage: | |
* new Notify("http://www.baidu.com").onshow(function() { | |
* alert("show"); | |
* }).onclose(function() { | |
* alert("close"); |
NewerOlder