题库 软件开发 题目列表     var array = ["first","second&qu...
问答题

    var array = ["first","second","third","fourth"];
    
    // 执行到第3次,结束循环
    array.forEach(function(item,index){
        if (item == "third") {
           //等于third时跳出这个循环,如何实现
        }
        alert(item);// first,sencond
    });


题目信息
校招真题
-
正确率
0
评论
8
点击