コンパイラかく語りき

import { Fun } from 'programming'

2015-09-26から1日間の記事一覧

【coffee×jQuery】eachの中でindexを使う

chuckです。 現在、cofeeScript中でjQueryを使っています。そこでeachを使った処理を書いているのですが、each内でindexを使用したのでメモ。 とは言えカンタンです。 ary = ['a', 'b', 'c'] ary.each (index) -> console.log index このとおり。 eachの引数…