GitHub 博客园 Nanakon
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 110 下一页

2013年11月26日

摘要: What is the current mechanism to construct a query string with SuperAgent?http://stackoverflow.com/questions/9437585/what-is-the-current-mechanism-to-construct-a-query-string-with-superagent 阅读全文
posted @ 2013-11-26 11:16 jzm17173 阅读(273) 评论(0) 推荐(0)

2013年11月25日

摘要: 纯CSS打飞机http://codepen.io/i0z/pen/mFLCw 阅读全文
posted @ 2013-11-25 16:48 jzm17173 阅读(117) 评论(0) 推荐(0)
摘要: ImagesLazyLoad 图片延迟加载效果http://www.cnblogs.com/cloudgamer/archive/2010/03/03/ImagesLazyLoad.htmlLazyload 延迟加载效果http://www.cnblogs.com/cloudgamer/archive/2010/02/01/LazyLoad.html非首屏内容的延迟加载function loadSecondaryScreen(elem, callback) { var $window = $(window); var elemTop = elem.offset().top; ... 阅读全文
posted @ 2013-11-25 15:31 jzm17173 阅读(119) 评论(0) 推荐(0)

2013年11月24日

摘要: users.json{ "tobi": { "password": "ferret", "name": "Tobi Holowaychuk" }}session.jsvar connect = require('connect')var users = require('./users')var server = connect( connect.logger('dev'), connect.bodyParser(), connect.cookie 阅读全文
posted @ 2013-11-24 15:21 jzm17173 阅读(160) 评论(0) 推荐(0)
摘要: request-time.jsmodule.exports = function(opts) { var time = opts.time || 100 return function(req, res, next) { var timer = setTimeout(function() { console.log( '\033[90m%s %s\033[39m \033[91mis taking too long!\033[39m' , req.method ... 阅读全文
posted @ 2013-11-24 11:22 jzm17173 阅读(279) 评论(0) 推荐(0)

2013年11月23日

摘要: server.jsvar qs = require('querystring')require('http').createServer(function(req, res) { var body = '' req.on('data', function(chunk) { body += chunk }) req.on('end', function() { res.writeHead(200) res.end('Done') console.log(qs.parse(body).name) })} 阅读全文
posted @ 2013-11-23 21:57 jzm17173 阅读(277) 评论(0) 推荐(0)
摘要: var qs = require('querystring')require('http').createServer(function(req, res) { //res.writeHead(200, {'Content-Type': 'image/png'}) /*var stream = require('fs').createReadStream('image.png') stream.on('data', function(data) { res.write(data) } 阅读全文
posted @ 2013-11-23 21:13 jzm17173 阅读(1040) 评论(0) 推荐(0)
摘要: http://www.gabrielgambetta.com/tiny_raytracer.htmlhttp://gabrielgambetta.com/tiny_raytracer_full.js 阅读全文
posted @ 2013-11-23 10:14 jzm17173 阅读(135) 评论(0) 推荐(0)
摘要: var fs = require('fs') // fs 文件系统var stdin = process.stdinvar stdout = process.stdoutvar stats = []fs.readdir(process.cwd(), function(err, files) { console.log('') if (!files.length) { return console.log(' \003[31m No files to show!\003[39\n') } console.log(' Select which 阅读全文
posted @ 2013-11-23 08:54 jzm17173 阅读(432) 评论(0) 推荐(0)

2013年11月21日

摘要: 手机支付宝-支付宝 知托付!http://qianbao.alipay.com/index.htm head menu box1 box2 box3 阅读全文
posted @ 2013-11-21 22:48 jzm17173 阅读(201) 评论(0) 推荐(0)
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 110 下一页

导航

轻音