摘要: 1.手机号 !(/^1[34578]\d{9}$/.test(mobile)) //输入的手机号不正确 2.密码 字母数字混合在6-18位 !(/^[a-zA-Z0-9]{6,18}$/.test(password)) 3.邮箱验证 !(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_ 阅读全文
posted @ 2017-08-14 17:01 流年之初,盛夏之末 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1.绘制矩形 fillRect(x, y, width, height)绘制一个填充的矩形 strokeRect(x, y, width, height)绘制一个矩形的边框 clearRect(x, y, width, height)清除指定矩形区域,让清除部分完全透明 2.绘制路径 beginPa 阅读全文
posted @ 2017-08-14 14:02 流年之初,盛夏之末 阅读(133) 评论(0) 推荐(0) 编辑