摘要: http://blog.csdn.net/larry011 阅读全文
posted @ 2016-02-01 18:50 Greasy_Giant 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 0x01 test 阅读全文
posted @ 2016-02-01 18:47 Greasy_Giant 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: 0x01 idea https://www.tumblr.com/dashboard 阅读全文
posted @ 2016-01-31 20:37 Greasy_Giant 阅读(268) 评论(0) 推荐(0) 编辑
摘要: http://my.oschina.net/deathdealer/blog/208919 阅读全文
posted @ 2016-01-25 14:35 Greasy_Giant 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 有时候我们在CSS布局的时候需要实现两栏布局,且其中一栏的宽度不固定。据我的经验,有以下几种方法:inline-block首先两个元素不跨行,又要可以设置宽高,当然是inline-block,但是用此方法有个非常大的缺陷,就是width属性不好设置js计算百分比计算calc属性Float + ove... 阅读全文
posted @ 2016-01-25 10:29 Greasy_Giant 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 建立Server //server.jsvar io = require('socket.io')(80); var chat = io .of('/chat') //设定命名空间 .on('connection', function (socket) { socket.emit('a messag 阅读全文
posted @ 2016-01-24 23:09 Greasy_Giant 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 1 'use strict'; 2 /** 3 * db config 4 * @type {Object} 5 */ 6 module.exports = { 7 type: "mongo", 8 log_sql: true, 9 log_connect: tr... 阅读全文
posted @ 2016-01-23 21:54 Greasy_Giant 阅读(1756) 评论(0) 推荐(0) 编辑
摘要: pageX、Y,包含的滚动条,是取得相对于整个网页的坐标。clientX、Y,不包含滚动条,是取得当面相对于视窗(浏览器窗口)的坐标。screenX、Y,相对于整个屏幕大小的坐标 阅读全文
posted @ 2015-10-19 17:57 Greasy_Giant 阅读(173) 评论(0) 推荐(0) 编辑
摘要: step-end : 在动画100%时发生阶跃,表现就是不会显示动画100%时的执行效果。step-start:在动画0%时发生阶跃,表现就是不会显示0%处的动画。 阅读全文
posted @ 2015-10-19 10:01 Greasy_Giant 阅读(247) 评论(0) 推荐(0) 编辑
摘要: var request = $.ajax( url, { dataType: "json" } ), chained = request.then(function( data ) { return $.ajax( url2, { data: { user: data.userId ... 阅读全文
posted @ 2015-10-19 09:56 Greasy_Giant 阅读(379) 评论(0) 推荐(0) 编辑