This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我想在我洗牌图像列表后获得alt=""一个数组中的所有值!但我总是得到保存价值!为什么?
$('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);