const _isPalindrome = string => { // 补全代码 let str=string.split('') while(str.length>1){ if(str.pop()!=str.shift()){ return false } } return true }