批改状态:未批改
老师批语:
用forEach遍历数组
var arr = [125,'das',964,'php','javascript'];
arr.forEach(function (value,index) {
console.log('['+index+']'+value);
})点击 "运行实例" 按钮查看在线实例
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号