¡@

Home 

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

jquery Programming Glossary: customerids

JQuery - $.when syntax for array of Deferred objects

http://stackoverflow.com/questions/10893668/jquery-when-syntax-for-array-of-deferred-objects

. My problem is that I don't know home many elements the customerIds array would contain. var customerIds new 1 2 3 .when getCustomerData.. many elements the customerIds array would contain. var customerIds new 1 2 3 .when getCustomerData customerIds 0 getCustomerData.. contain. var customerIds new 1 2 3 .when getCustomerData customerIds 0 getCustomerData customerIds 1 getCustomerData customerIds..

JQuery - $.when syntax for array of Deferred objects

http://stackoverflow.com/questions/10893668/jquery-when-syntax-for-array-of-deferred-objects

It works if I haven't caused an error when I simplified it . My problem is that I don't know home many elements the customerIds array would contain. var customerIds new 1 2 3 .when getCustomerData customerIds 0 getCustomerData customerIds 1 getCustomerData.. when I simplified it . My problem is that I don't know home many elements the customerIds array would contain. var customerIds new 1 2 3 .when getCustomerData customerIds 0 getCustomerData customerIds 1 getCustomerData customerIds 2 .then function.. I don't know home many elements the customerIds array would contain. var customerIds new 1 2 3 .when getCustomerData customerIds 0 getCustomerData customerIds 1 getCustomerData customerIds 2 .then function alert 'success' .fail function alert 'error'..