摘要: 一、校验数字的表达式 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]*)+( 阅读全文
posted @ 2022-09-22 16:23 zq程序员 阅读(319) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="widt 阅读全文
posted @ 2022-09-08 22:07 zq程序员 阅读(235) 评论(0) 推荐(0)
摘要: function getDays(year,month,day){ // 二月天数:判断是否是闰年 var two=year%4==0&&year%100!==0 || year%400==0 ? 29:28 // 每个月的天数放到数组 var arr=[31,two,31,30,31,30,31, 阅读全文
posted @ 2022-09-06 19:39 zq程序员 阅读(88) 评论(0) 推荐(0)
摘要: <div id="fsD1" class="focus" style="margin-left:400px"> <div id="D1pic1" class="fPic"> <div class="fcon" style="display: none;"> <a target="_blank" hr 阅读全文
posted @ 2022-09-05 19:23 zq程序员 阅读(36) 评论(0) 推荐(0)