¡@

Home 

2014/10/16 ¤W¤È 12:02:13

jquery Programming Glossary: birthdates

how to get distinct values from json in jquery

http://stackoverflow.com/questions/517519/how-to-get-distinct-values-from-json-in-jquery

at a total loss as to how efficiently get only the unique birthDates and sort them by year or any sort by any other personal data.. but this should be sorted in the loop. function data var birthDates var param birthDate .each data.people function if birthDates.. var param birthDate .each data.people function if birthDates this param birthDates this param birthDates this param .push..

how to get distinct values from json in jquery

http://stackoverflow.com/questions/517519/how-to-get-distinct-values-from-json-in-jquery

function i person alert person.birthDate but I am at a total loss as to how efficiently get only the unique birthDates and sort them by year or any sort by any other personal data . I'm trying to do this and be efficient about it i'm hoping.. an object as a key value dictionary. I haven't tested this but this should be sorted in the loop. function data var birthDates var param birthDate .each data.people function if birthDates this param birthDates this param birthDates this param .push.. but this should be sorted in the loop. function data var birthDates var param birthDate .each data.people function if birthDates this param birthDates this param birthDates this param .push this for var d in birthDates add d to array here or do something..