const _permute = string => { // 补全代码 let result = [] if(string.length==1){ return [string] } for(let x of string){ let others = string.split('').filter(item=>item!==x) let stringLefted = others.join('') let stringLeftedArr = _permute(stringLefted) stringLeftedArr.map(item=>...