![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
心有猛虎细嗅蔷薇R
前端学习者
展开
-
事件监听兼容性解决方案
封装一个函数,函数中判断浏览器的类型:原创 2019-05-19 15:44:43 · 364 阅读 · 0 评论 -
删除事件兼容性解决方案
原创 2019-05-19 15:47:27 · 189 阅读 · 0 评论 -
判断位数为3的高级写法
var pattern = /^[0-9]+$/; if(pattern.test(15161563)) { //这个叫正则表达式,判断任何用户输入的数字尾数是否为3,不局限于100 console.log("你输入的数字尾数是3") } //输出------你输入的数字尾数是3 ...转载 2019-05-12 21:10:49 · 1320 阅读 · 0 评论