function test1() //循环列表 { for (var txt of ["张三","李四","王麻子"]){ Console.log(txt) //立即窗口显示 } } function test2() //循环字符串 { for (var txt of "javascript"){ Console.log(txt) } } function test3() //循环对象,全部工作表 { for (var sh of Sheets){ Console.log(sh.Name) } }