这可能远不止于此。只想贡献另一个简单的解决方案:var text = 'uololooo';// With ES6[...text].forEach(c => console.log(c))// With the `of` operatorfor (const c of text) { console.log(c)}// With ES5for (var x = 0, c=''; c = text.charAt(x); x++) { console.log(c); }// ES5 without the for loop:text.split('').forEach(function(c) { console.log(c);});