2017年4月13日

摘要: 一、校验数字的表达式 1 数字:^[0-9]*$ 2 n位的数字:^\d{n}$ 3 至少n位的数字:^\d{n,}$ 4 m-n位的数字:^\d{m,n}$ 5 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9] 阅读全文

posted @ 2017-04-13 16:28 maricle- 阅读(73) 评论(0) 推荐(0)

摘要: HTML: 1.<button type="button">Click Me!</button> 始终为按钮规定 type 属性 如果在 HTML 表单中使用 button 元素,不同的浏览器会提交不同的值。Internet Explorer 将提交 <button> 与 <button/> 之间的 阅读全文

posted @ 2017-04-13 13:18 maricle- 阅读(186) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3