字符串提取数字
来源:互联网 发布:小米手柄映射软件 编辑:程序博客网 时间:2024/06/05 22:19
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>js实现在字符串中提取数字</title>
<script language="javascript" type="text/javascript">
function getNum(text){
var value = text.replace(/[^0-9]/ig,"");
alert(value);
}
</script>
</head>
<body>
<input type="text" id="btn_getNum"/>
<input type="button" value="得到数字" onclick="getNum(btn_getNum.value);"/>
</body>
</html>
阅读全文
0 0
- 提取字符串中的数字
- 提取字符串中的数字
- matlab 字符串提取数字
- 字符串提取数字
- 字符串中提取数字
- 字符串提取数字
- 字符串中提取数字
- 字符串数字的提取
- 提取字符串中的数字
- 提取字符串中的数字
- 字符串 汉字/数字提取
- 提取 字符串中 数字
- 字符串提取数字
- 字符串提取数字
- 字符串中提取数字
- 提取字符串中的数字
- 字符串中数字的提取
- 字符串中提取数字算法
- Learning a Probabilistic Latent Space of Object Shapes via 3D Generative-Adversarial Modeling
- hive on spark 遇到的坑
- poj2187-Beauty Contest 求凸包最远距离(旋转卡壳算法模板题)
- Spring Cloud 学习,整理
- Linux开发使用到的相关命令
- 字符串提取数字
- Peewee中文文档【二】:快速开始
- Maven 之 SNAPSHOT 和 release -----进阶
- spring框架、ajax使用问题记录
- [POJ1200] Crazy Search
- PAT (Advanced Level) Practise 1078 Hashing (25)(平方探测)
- 谷歌访问助手安装
- tomcat最佳线程数
- 欢迎使用CSDN-markdown编辑器