loop through a javascript object
问题 I have a javascript object that looks like this, var telephones = { /* "phone" : { duration : time it takes to animate element in, leftIn : position of element once on the incoming animation leftOut : position of element on the outgoing animation delay : delay between two animations } */ "phone1": { duration : 850, leftIn : "408px", leftOut : "9999px", delay : 0, }, "phone2" : { duration : 600, leftIn : "962px", leftOut : "999px", delay : setDelay(), }, "phone3" : { duration : 657, leftIn :