新手求正则表达式 只允许 数字 和"," 并且","号只能出现在数字中间 不能出现在开头和结尾 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Insert title here</title><script type="text/javascript"> var reg = /^\d*,?\d{0,}$/ ; function testStr(){ var str = "1," ; alert(reg.test(str)) ; }</script></head><body> <input type="button" value="val" onclick="testStr()"/></body></html> JS获取计算问题 头晕啊,这段代码啥意思 正则表达式 参数 关于javascript控制播放器的问题 UniCode转换成shift-jis(高手请进) 如何获取一个日期是它所在月的第几周 有这样一个函数吗? ------使后面的HTML停止加载~ 如何编写将主页上的表单上的信息通过E_mail发给自己 yui构建treeview时为何报错"Dom is undefined" 求大神帮忙简化下这段js代码 我想实现个鼠标按下滚动速度加快 怎样从零开始学jquery?
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<script type="text/javascript">
var reg = /^\d*,?\d{0,}$/ ;
function testStr(){
var str = "1," ;
alert(reg.test(str)) ;
}
</script>
</head>
<body>
<input type="button" value="val" onclick="testStr()"/>
</body>
</html>