摘要: <!DOCTYPE html> <html> <body> <p id="p1">start stop speed start speed velociting start</p> <button onclick="myFunction()">Try it</button> <p id="demo" 阅读全文
posted @ 2018-10-28 16:44 鬼木25 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 手机号码正则表达式验证: function checkPhone(){ var phone = document.getElementById('phone').value; if(!(/^1[34578]\d{9}$/.test(phone))){ alert("手机号码有误,请重填"); ret 阅读全文
posted @ 2018-10-28 16:41 鬼木25 阅读(161) 评论(0) 推荐(0) 编辑