i want after i shuffle a lis开发者_Go百科t of images to get all the alt="" value in one array!
but i get always the save value!why?
$('ul').shuffle(); //this will shuffle the list
var a = {};
$("ul img").each(function() {
  a[this.alt] = $(this).attr("alt");
});
$.operation(a, shuffle);
$('ul').shuffle(); //this will shuffle the list
var a = new Array();
$("ul > img").each(function(i) {
  a[i] = $(this).attr("alt");
});
$.operation(a, shuffle);
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论