87,910
社区成员
发帖
与我相关
我的任务
分享
<input type="text" onblur="rep(this)"/>
<script>
function rep(o) {
if (!/^\d{5}\.\d{2}$/.test(o.value)) {
var ov = o.getAttribute('ov');
o.value = ov ? ov : '';
} else o.setAttribute('ov', o.value);
}
</script>