摘要: reg = /[~#^$@%&!?%*]/gi; if (reg.test(postdata.Name.trim())) { alert("姓名不能含有特殊字符"); } else { if (isEmojiCharacter(postdata.Name.trim())) { alert("姓名不能 阅读全文
posted @ 2017-07-27 11:35 过一天日子修一天缘 阅读(3190) 评论(0) 推荐(0) 编辑
摘要: $.fn.serializeObject = function () { var o = {}; var a = this.serializeArray(); $.each(a, function () { if (o[this.name]) { if (!o[this.name].push) { 阅读全文
posted @ 2017-07-27 11:33 过一天日子修一天缘 阅读(264) 评论(0) 推荐(0) 编辑
摘要: reg = /[~#^$@%&!?%*]/gi; if (reg.test(postdata.Name.trim())) { alert("姓名不能含有特殊字符"); } else { if (isEmojiCharacter(postdata.Name.trim())) { alert("姓名不能 阅读全文
posted @ 2017-07-27 11:31 过一天日子修一天缘 阅读(57) 评论(0) 推荐(0) 编辑
摘要: //重写alert方法,去掉地址显示window.alert = function(name){var iframe = document.createElement("IFRAME");iframe.style.display="none";iframe.setAttribute("src", ' 阅读全文
posted @ 2017-07-27 11:15 过一天日子修一天缘 阅读(1907) 评论(0) 推荐(0) 编辑