摘要: mapreduce其实是分批处理数据的,每一百次重新reduce处理,所以到reduce里的数据如果是101条,那就会分2次进入。 这导致的问题就是在reduce中 如果 初始化 var count = 0;在循环中 count ++,最后输出的是1??? 避免都方法是,把数据存在返回的value里 阅读全文
posted @ 2016-11-23 17:30 天堂有路你不走 阅读(1350) 评论(0) 推荐(1) 编辑
摘要: touch-action: none; pointer-events: auto; 阅读全文
posted @ 2016-11-15 11:15 天堂有路你不走 阅读(1563) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/superdog007/article/details/48338371 阅读全文
posted @ 2016-04-15 14:51 天堂有路你不走 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 转载: http://blog.csdn.net/marujunyy/article/details/8695205 阅读全文
posted @ 2016-04-11 09:50 天堂有路你不走 阅读(89) 评论(0) 推荐(0) 编辑
摘要: <meta name="format-detection" content="telephone=no" /> 阅读全文
posted @ 2016-04-06 21:26 天堂有路你不走 阅读(98) 评论(0) 推荐(0) 编辑
摘要: SQL中char、varchar、nvarchar的区别 char char是定长的,也就是当你输入的字符小于你指定的数目时,char(8),你输入的字符小于8时,它会再后面补空值。当你输入的字符大于指定的数时,它会截取超出的字符。 nvarchar(n) 包含 n 个字符的可变长度 Unicode 阅读全文
posted @ 2016-03-29 16:17 天堂有路你不走 阅读(168) 评论(0) 推荐(0) 编辑
摘要: //定义setTimeout执行方法 var TimeFn = null; $DIV.on('click', function(){ // 取消上次延时未执行的方法 clearTimeout(TimeFn); TimeFn = setTimeout(function() { ...单击事件 },30 阅读全文
posted @ 2016-03-16 22:00 天堂有路你不走 阅读(631) 评论(0) 推荐(0) 编辑
摘要: img 会自动发送请求获取资源 ng-src 拦截这种主动请求 阅读全文
posted @ 2016-01-29 14:32 天堂有路你不走 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 通过添加css样式,覆盖隐藏input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0;... 阅读全文
posted @ 2016-01-21 10:54 天堂有路你不走 阅读(927) 评论(0) 推荐(0) 编辑
摘要: twitter emojihttp://twemoji.maxcdn.com/preview.htmlCommon emojihttp://czyborra.com/unifont/autoinfix.hs.html 阅读全文
posted @ 2016-01-20 16:07 天堂有路你不走 阅读(165) 评论(0) 推荐(0) 编辑