let str = "level";for (let c of str) { console.log(c);}//带索引迭代for (let i = 0; i < str.length; i++) { console.log(`str[${i}] = ${str[i]};`);}