Blogger Information
Blog 10
fans 0
comment 0
visits 7647
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
用forEach遍历数组-5-7作业,未完成
李男_江苏_412288
Original
612 people have browsed it

用forEach遍历数组

实例

 var arr = [125,'das',964,'php','javascript'];
    arr.forEach(function (value,index) {
        console.log('['+index+']'+value);
    })

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post