直接看代码
1 const reverse = str => str.split('').reverse().join(''); 2 3 reverse('hello world');
本文来自博客园,作者:冰中焱,转载请注明原文链接:https://www.cnblogs.com/Blod/p/16254038.html