随笔分类 - js交互
摘要:<script> var reg = /^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/; function verifyTel (tel){ if(reg.test(tel)){ return true; } return f
阅读全文
摘要:js 判断字符串是否为JSON格式
阅读全文
摘要:前端接收 post 请求返回的文件
阅读全文
摘要:function getdate() { var now = new Date(), y = now.getFullYear(), m = now.getMonth() + 1, d = now.getDate(); return y + "-" + (m < 10 ? "0" + m : m...
阅读全文
摘要:js原生选择class DOM元素
阅读全文
摘要:jQuery判断checkbox是否选中的3种方法
阅读全文
摘要:JavaScript实现水平进度条拖拽效果
阅读全文
摘要:jquery对象和javascript对象即DOM对象相互转换
阅读全文
摘要:$('#textArea').on("keyup",function(){
$('#textNum').text($('#textArea').val().length);
...
阅读全文
摘要:location.search.substr(1)
阅读全文
摘要:移动端回车键触发表单提交及相关兼容
阅读全文
摘要:document.onclick在ios上不触发的解决方法与touchstart点击穿透处理
阅读全文