当前位置:网站首页>JS determines whether the numeric string contains characters
JS determines whether the numeric string contains characters
2022-04-23 04:46: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://yzsam.com/2022/04/202204230445481089.html
边栏推荐
- No such file or directory problem while executing shell
- The last day of 2021 is the year of harvest.
- Error occurs when thymeleaf th: value is null
- Innovation training (XI) airline ticket crawling company information
- [pytoch foundation] torch Split() usage
- win10, mysql-8.0.26-winx64. Zip installation
- Leetcode009 -- search the target value in the array with binary search
- Recommended scheme for national production of electronic components for wireless charging
- Gets all dates between two times
- QML advanced (V) - realize all kinds of cool special effects through particle simulation system
猜你喜欢
Programmers complain: I really can't live with a salary of 12000. Netizen: how can I say 3000
Recommended scheme of national manufactured electronic components for intelligent electronic scales
Druid -- JDBC tool class case
Spark optimization
解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].
Key points of AWS eks deployment and differences between console and eksctl creation
Practice and exploration of knowledge map visualization technology in meituan
Supplement 14: cmake practice project notes (to be continued 4 / 22)
Innovation training (IX) integration
Recommended scheme for national production of electronic components for wireless charging
随机推荐
leetcode007--判断字符串中的括号是否匹配
ApplicationContext injection bean
Innovation training (10)
Mysql50 basic exercises
C language: Advanced pointer
Leetcode005 -- delete duplicate elements in the array in place
Introduction to raspberry pie 3B - system installation
Installation and deployment of Flink and wordcount test
The last day of 2021 is the year of harvest.
Druid -- JDBC tool class case
PHP+MySQL 制作留言板
520. Detect capital letters
Basic use of shell WC (counting the number of characters)
Code007 -- determine whether the string in parentheses matches
Recommended scheme of national manufactured electronic components
Alibaba tip: it is better to create threads manually
Innovative practice of short video content understanding and generation technology in meituan
用LCR表完美测试无线充电系统中的线圈
Learning Android from scratch -- Introduction
MySQL time function query