技术交流
文章平均质量分 84
qq502100173
这个作者很懒,什么都没留下…
展开
-
ruby inject 用法(转载)
Ruby: inject I love inject. To be more specific, I love Enumerable#inject. I find it easy to read and easy to use. It's powerful and it lets me be more concise. Enumerable#inject is a good thing...原创 2014-05-27 17:32:35 · 138 阅读 · 0 评论 -
jquery on替代live
一直都知道jQuery 1.7开始就提示live方法将移除,并且可以使用on方法进行替代,动手做了,才发现,怎么着好像不行?!!最后才发现,原来,没用对语法! jQuery.on() 绑定点击事件可以用两种方式使用: $(document).on('click', '.list_increase_num', function(){ var num = $(this).p...2014-06-12 17:41:41 · 133 阅读 · 0 评论