ICode9

精准搜索请尝试: 精确搜索
  • 判断字符串是否为回文字符串2022-06-12 17:02:57

    方法一 function isStr(str){ if(!str.length) return false; str = str.toLowerCase().split(''); let start = 0; let end = str.length - 1; while(start<end){ if(str[start] === str[end]){ start++; end--; }else{ return false } } re

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有