</div>
<script>
var arr = [
["hello", "word", "helloword"],
["css", "js"],
["ios", "android", "wp", "mac", "windows"],
];
$.each(arr, function(index, item) {
$(".box").append(`<h6 class="h6"></h6>`);
$.each(item, function(index1, items) {
$(".h6").append(`<p><span>${index}----------</span>${items}---------<i>${index1}</i></p>`);
})
})
</script>
求帮助,解决关于二维数组循环重复的问题
最新推荐文章于 2024-07-22 18:55:32 发布