还是不太像 :)
你得先制定时间的输入格式. HH:MM<input type="text" name="time" onkeyup="bao()">
<script>
function bao()
{
var reg = /^\d{2}$/;
var bln = reg.test(document.all.time.value);
if(bln==true){document.all.time.value+=":"};
}
</script>
你得先制定时间的输入格式. HH:MM<input type="text" name="time" onkeyup="bao()">
<script>
function bao()
{
var reg = /^\d{2}$/;
var bln = reg.test(document.all.time.value);
if(bln==true){document.all.time.value+=":"};
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货