当前位置:网站首页>js 判断数字字符串中是否含有字符
js 判断数字字符串中是否含有字符
2022-04-23 04:45:00 【spring-java】
function isLetter(str) {
for (var i in str) {
var asc = str.charCodeAt(i);
if ((asc >= 65 && asc <= 90 || asc >= 97 && asc <= 122)) {
return true;
}
}
return false;
}
版权声明
本文为[spring-java]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_41463944/article/details/124325807
边栏推荐
- Unity RawImage背景无缝连接移动
- Programmers complain: I really can't live with a salary of 12000. Netizen: how can I say 3000
- Leetcode005 -- delete duplicate elements in the array in place
- Leetcode008 -- implement strstr() function
- What's the difference between error and exception
- win10, mysql-8.0.26-winx64. Zip installation
- Installation and deployment of Flink and wordcount test
- 使用model.load_state_dict()时,出现AttributeError: ‘str‘ object has no attribute ‘copy‘
- Record the ThreadPoolExecutor main thread waiting for sub threads
- C language: Advanced pointer
猜你喜欢

拼了!两所A级大学,六所B级大学,纷纷撤销软件工程硕士点!

Practice and exploration of knowledge map visualization technology in meituan

Unity rawimage background seamlessly connected mobile

Recommended scheme of national manufactured electronic components for intelligent electronic scales

POI export message list (including pictures)

Installation of zynq platform cross compiler

Windows remote connection to redis

Use recyclerview to realize left-right side-by-side classification selection

Introduction to raspberry pie 3B - system installation

Youqilin 22.04 lts version officially released | ukui 3.1 opens a new experience
随机推荐
test
leetcode002--将有符号整数的数字部分反转
What is a blocking queue? What is the implementation principle of blocking queue? How to use blocking queue to implement producer consumer model?
RC低通滤波器的逆系统
MySQL queries users logged in for at least N consecutive days
POI export message list (including pictures)
补充番外14:cmake实践项目笔记(未完待续4/22)
2019 is coming to an end, the longest day.
Leetcode003 -- judge whether an integer is a palindrome number
/etc/bash_ completion. D directory function (the user logs in and executes the script under the directory immediately)
Go reflection rule
SQL statement for adding columns in MySQL table
win10, mysql-8.0.26-winx64. Zip installation
Spark small case - RDD, spark SQL
The programmer starts the required application with one click of window bat
229. Find mode II
Druid -- JDBC tool class case
Leetcode004 -- Roman numeral to integer
Flink case - Kafka, MySQL source
程序员抱怨:1万2的工资我真的活不下去了,网友:我3千咋说