2013-09-13から1日間の記事一覧
throttleしょっちゅう使うけどプラグイン使うのも面倒くさいので、 Date.now() しない throttle を関数化してみた。 easy throttle 使い方は、 $(window).on('resize', throttle(function(e) { console.log("hoge"); }, 50)); こんな感じ。
素人趣味でやってるWeb制作とかプログラミングとかそっち系の話題についてのブログです。
throttleしょっちゅう使うけどプラグイン使うのも面倒くさいので、 Date.now() しない throttle を関数化してみた。 easy throttle 使い方は、 $(window).on('resize', throttle(function(e) { console.log("hoge"); }, 50)); こんな感じ。