javascript - Handling image onload function for multiple images -


  फ़ंक्शन हैंडललोड (यूआरएल, कॉलबैक) {var img = new Image (); Img.onError = function () {चेतावनी ('चित्र लोड नहीं किया जा सकता है:' '+ url +' ''); }; Img.crossOrigin = ''; Img.onload = function () {callback (img); }; Img.src = url; } हैंडललोड (इमेजुरल, कॉलबैकफंक्शन);   

मैं कई फ़ंक्शन के लिए इस फ़ंक्शन का उपयोग कर रहा हूं? लेकिन मुझे सही नक्शा आउटपुट छवियां नहीं मिल रही हैं, जिनमें से कुछ दोहराए जाते हैं

कोशिश करें imagesLoaded < / कोड>:

उपयोग सीधा है: चित्र लोड (एएमएम, कॉलबैक);

Comments

Popular posts from this blog

Delphi: missing interface declarations for UI Automation methods -

php - how to change mysql_result($res, 0, "url"); to mysqli -

android - How to attach an image from an app to gmail -