2013-02-12 68 views

回答

3
getById = (id) -> return e for e in array when e.id is id 
+0

媽2秒:) – 2013-02-12 11:33:47

1

嘗試

getById = (id) -> 
    return e for e in array when e.id is id 
+0

謝謝,我忘了......你在哪裏第一次,但我接受吉米的答案是「一條線」「何時」:P – olanod 2013-02-12 11:43:18