2020javaweb教程之jQuery数组遍历

2020javaweb教程之jQuery数组遍历

数组遍历

<script>
    var arr=[1,2,3,4,5];
    $(function(){
        $.each(arr,function(i,v){
            console.log(i+"..."+v)
        })
    })
</script>


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *