随笔分类 -  js总结

摘要:1、设置css overflow-y: auto; 在div的y轴上会出现滚动条。 var showContent = $(".show-chat-content"); showContent[0].scrollTop = showContent[0].scrollHeight; 在js中这样写,会 阅读全文
posted @ 2020-05-15 18:54 飞翔蓝天的小猪 阅读(2319) 评论(0) 推荐(0)
摘要:let myreg=/^[1][3,4,5,7,8][0-9]{9}$/;//手机号码验证 let re = /^\w+((.\w+)|(-\w+))@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+).[A-Za-z0-9]+$/;//邮箱验证 var p = /^(([0-9]{3} 阅读全文
posted @ 2020-04-20 16:05 飞翔蓝天的小猪 阅读(149) 评论(0) 推荐(0)