似乎相对简单:
_.each words, (val, key) -> $(".word_choice")[key].html val
返回:
$(".word_choice")[key].html is not a function
[Break On This Error]
return $(".word_choice")[key].html(val);
想不通这个。我正在使用这个参考:
http://autotelicum.github.com/Smooth-CoffeeScript/literate/underscore.html#each