jquery - Why doesn't all values get iterated from object? -


में jQuery - मेरे पास यह है:

  // रिटर्न = ऑब्जेक्ट {0: 17 ", 1:" 16 ", 2:" 24 "} console.log (अंतिम कॉलर्स चयन); $ (अंतिम कॉलर्स चयन) .each (फ़ंक्शन (कुंजी, मान) {console.log (मान [कुंजी]); // क्यों?});  

केवल लूप में पहला मान क्यों मिलता है? (17) मैं चाहता हूँ कि 17,16 & amp; 24. के माध्यम से दोहराई जा सकती है।

$ .each का उपयोग करें () फ़ंक्शन नहीं object.each ()

  $। प्रत्येक (अंतिम कॉलर्स चयन, फ़ंक्शन (कुंजी, मान) {console.log (मान);});  


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -