檢查數字(整數). function check() { re = /^\d+$/; if (!re.test(document.forms[0].t1.value)) { alert("欄位不能空白且只允許輸入數字");
確定! 回上一頁