测试代码:
<script type="text/javascript">
function check(v) {
if(v.match(/^([0-1]\d|2[0-3]):([0-5]\d):([0-5]\d)$/)) {
return true;
} else {
alert('请以hh:mm:ss格式输入时间');
}
}
</script>
<script type="text/javascript">
function check(v) {
if(v.match(/^([0-1]\d|2[0-3]):([0-5]\d):([0-5]\d)$/)) {
return true;
} else {
alert('请以hh:mm:ss格式输入时间');
}
}
</script>
10万+

被折叠的 条评论
为什么被折叠?



