Giter Site home page Giter Site logo

utils's Introduction

版本更新

v1.3.2 2024-01-24

增加

  • format补充格式化函数

    • formatFileSize文件大小单位格式化
  • assets补充资源函数

    • getBase64ImageSize获取Base64编码图片文件大小
    • compressImage图片压缩

v1.3.1 2024-01-11

增加

  • date补充延迟函数
    • sleep同步延迟
    • asyncSleep异步延迟

v1.3.0 2024-01-04

增加

  • date添加时间模块

    • isDate 获取日期对象
    • isLeapYear 是否闰年
    • getDaysOfMonth 获取月份天数
    • getBeginDayOfMonth 获取月份开始
    • getMonthInfo 获取月份信息
    • getMonthDays 获取日历月份视图信息
  • assets添加资源模块

    • downloadFile下载文件
    • dataURItoBlobbase64转二进制
    • imageToBase64图像转Base64
    • getImageSize获取图片尺寸
  • storage补充缓存函数

    • setLocalStorage 存储 localStorage
    • getLocalStorage 获取 localStorage
    • setSessionStorage 存储 sessionStorage
    • getSessionStorage 获取 sessionStorage
  • format添加格式化模块

    • numberWithCommas数字千分位分割
    • formatBankCardNumber格式化银行卡号
  • math添加数学计算模块

    • compute四则运算
  • DOM添加DOM模块

    • getParentNode获取指定class的祖先元素
    • requestFullscreen指定dom元素全屏
    • exitFullScreen退出全屏
  • 颜色值添加颜色值模块

    • rgbaRegex 匹配rgba或rgb颜色
    • hexRegex 匹配十六进制颜色
    • hslRegex 匹配hsl颜色
    • hslaRegex 匹配hsla颜色
    • rgbaToHex rgba转十六进制
    • hexToRgba 十六进制转rgba
    • rgbaToHsl rgba转hsl
    • hslToRgb hsl转rgb
    • hslaToRgba hsla转rgba
  • utils补充工具函数

    • copyAsync复制
    • debounce防抖函数
    • throttle节流函数

删除

  • utils其他函数中移除
    • requestFullscreen 指定 dom 元素全屏
    • exitFullScreen 退出全屏
  • file文件模块移除

v1.0.4 2023-12-18

  • 修复 README

v1.0.3 2023-12-18

  • utils添加工具模块
    • getDataType 获取数据类型
    • getParentNode 递归获取指定 class 的祖先元素
    • hasNotNullValue 判断对象是否至少有一项值
    • hasNullValue 判断对象是否有空值
    • uniqueByKey 根据指定 key 的值,对对象数组进行去重
    • requestFullscreen 指定 dom 元素全屏
    • exitFullScreen 退出全屏
    • copy 复制函数
  • file添加文件模块
    • dataURItoBlob 将 base64 转换为字符串中的原始二进制数据
    • downloadFile 下载文件
  • storage添加缓存模块
    • getCookies 获取 cookie
  • url添加路由模块
    • getUrlParams 获取 url 参数
    • setSearchParams 修改 href
    • packUrlParams 组装 url 参数

v1.0.2 2023-12-17

  • 添加 ts
  • 添加部署脚本 deploy.sh

v1.0.1 2023-12-17

  • 添加 rollup 打包

v1.0.0 2023-12-17

  • 初始化测试 scope 发布

utils's People

Contributors

wyh-code avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.