摘要: 回车键搜索兼容性问题 document.onkeydown = keyDownSearch; function keyDownSearch(e) { // 兼容FF和IE和Opera var theEvent = e || window.event; var code = theEvent.keyC 阅读全文
posted @ 2017-03-27 20:35 酱果子 阅读(268) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script src="js/jquery-1.12.4.js"></script></head><body><div id="sho 阅读全文
posted @ 2017-02-07 14:56 酱果子 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 一:正则去判断输入是否为手机号 function checkSubmitMobil() { if ($("#phoneNum").val() == "") { alert("手机号码不能为空!"); //$("#moileMsg").html("<font color='red'>手机号码不能为空! 阅读全文
posted @ 2017-02-07 13:59 酱果子 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-01-29 22:42 酱果子 阅读(209) 评论(0) 推荐(0) 编辑