摘要: 表单验证时,需要去除文本框前后的空格才可以正确通过验证。以前看到过一句话:任何设计和代码都要对用户足够宽容。 jQuery - $.trim() var tel = $('.phone').val(); var result = $.trim(tel); JS - replace&正则 var tel = document.querySelector('.phone').value... 阅读全文
posted @ 2018-06-15 15:36 大da脸 阅读(2948) 评论(0) 推荐(0) 编辑
摘要: 视频地址:http://www.cnblogs.com/romanticcrystal/p/9186483.html 阅读全文
posted @ 2018-06-15 11:15 大da脸 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-15 10:49 大da脸 阅读(339) 评论(0) 推荐(0) 编辑