整数翻转变形
var isPalindrome = function(x) { if(x<0) return false; if(x<10) return true; var res = 0; var block = x while(x>0){ res = (res * 10) + (x % 10) x = (x - (x%10)) / 10 } if (res === block) { return true } else { return false } };