---
title: "只能输入数字"
author: "anly"
date: "2008-07-16T12:02:07Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2008-07-16T12:02:07Z"
id: 215353
url: "https://anly.iteye.com/blog/215353"
---

<input   onpropertychange="if   (/\D/g.test(value))   value=value.replace(/\D/g,'')"   name="tttt"   type="TEXT"   maxlength="18"   size="18">