You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstisSpider=()=>{return/adsbot|googlebot|bingbot|msnbot|yandexbot|baidubot|robot|careerbot|seznambot|bot|baiduspider|jikespider|symantecspider|scannerlwebcrawler|crawler|360spider|sosospider|sogou web sprider|sogou orion spider/.test(ua);};
JS 前端常用工具方法
邮箱验证
手机号码
电话号码
是否 url 地址
是否字符串
数据类型检测
打乱数组
是否函数
是否错误对象
是否是微信浏览器
是否是移动端
是否是 QQ 浏览器
是否是爬虫
是否 ios
是否为 PC 端
去除 html 标签
获取 url 参数
动态引入 js
el 是否包含某个 class
获取滚动的坐标
滚动到顶部
el 是否在视口范围内
洗牌算法随机
判断类型集合
严格的身份证校验
将阿拉伯数字翻译成中文的大写数字
将数字转换为大写金额
数组去重
求两个集合的并集
求两个集合的交集
将类数组转换为数组
检测密码强度
节流
防抖
判断两个对象是否键值相同
16 进制颜色转 RGBRGBA 字符串
生成随机颜色
颜色 RGB 转 16 进制
计算 2 个日期之间相差多少天
校验数组是否为空
检验车牌号
The text was updated successfully, but these errors were encountered: