es6 js实现数组手动循环

js yekong 477℃

js实现数组手动循环

let arr = ['ceshi', 'wanjun', 'wanjunshijie']
let list=arr.entries()
console.log(list.next().value)
console.log('```````````````````')
console.log(list.next().value)
console.log('******************')
console.log(list.next().value)
console.log('------------------')

运行结果
wanjunshijiecom 2021-09-07 at 05.54.22@2x

喜欢 (0)