当前位置:网站首页>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
边栏推荐
- leetcode002--将有符号整数的数字部分反转
- 2019 is coming to an end, the longest day.
- Spark small case - RDD, broadcast
- The unity camera rotates with the mouse
- Ali's ten-year technical experts jointly created the "latest" jetpack compose project combat drill (with demo)
- 2021数学建模国赛一等奖经验总结与分享
- Recommended scheme of national manufactured electronic components for intelligent electronic scales
- Supplement: Annotation
- 解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].
- Eight misunderstandings that should be avoided in data visualization
猜你喜欢
Key points of AWS eks deployment and differences between console and eksctl creation
Inverse system of RC low pass filter
简单的拖拽物体到物品栏
383. Ransom letter
C language: spoof games
Recommended scheme for national production of electronic components for wireless charging
Recommended scheme for national production of electronic components of wireless keyboard
使用model.load_state_dict()时,出现AttributeError: ‘str‘ object has no attribute ‘copy‘
做数据可视化应该避免的8个误区
Recommended scheme of national manufactured electronic components
随机推荐
补充番外14:cmake实践项目笔记(未完待续4/22)
zynq平臺交叉編譯器的安裝
Huawei machine test -- high precision integer addition
IEEE Transactions on industrial information (TII)
简单的拖拽物体到物品栏
229. Find mode II
Solutions to the failure of sqoop connection to MySQL
Record your own dataset with d435i, run orbslam2 and build a dense point cloud
The object needs to add additional attributes. There is no need to add attributes in the entity. The required information is returned
Special topic of data intensive application system design
Leetcode003 -- judge whether an integer is a palindrome number
Leetcode006 -- find the longest common prefix in the string array
Opencv + clion face recognition + face model training
Raspberry pie + opencv + opencv -- face detection ------- environment construction
/etc/bash_ completion. D directory function (the user logs in and executes the script under the directory immediately)
Key points of AWS eks deployment and differences between console and eksctl creation
2021数学建模国赛一等奖经验总结与分享
The last day of 2021 is the year of harvest.
leetcode006--查找字符串数组中的最长公共前缀
Summary of MySQL de duplication methods