Leetcode9-回文数 function isPalindrome(x){ // 1. 先把数字转化成字符串 // 2. 然后split()让字符串拆分成数组,再reverse()反置数组 // 3. 然后再join()拼接起来,再转化为数字 return x === Number(x.toString().split(