Coder Utils

【使用前先看介绍/有问题可反馈】Coder Utils (程序员专属工具):为程序员专门准备的常用 JavaScript 函数

2021-03-07 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

लेखक
kalila-cc
रेटिंग
0 0 0
आवृत्ती
0.4.3
बनवली
2020-12-06
अपडेट केली
2021-03-07
आकार
110 KB
License
नाही
यांवर लागू होते:
सर्व संकेतस्थळे

Coder Utils(程序员专属工具)

脚本介绍

为程序员专门准备的常用 JavaScript 函数

  • 已有函数

    • ut
      • common
        • 深度拷贝 ($deepcopy)
        • 下载Blob ($downloadBlob)
        • 视频控制 ($videoControl)
      • type
        • 有效类型判断 ($isValid)
        • 有效数字判断 ($isValidNumber)
        • 有效对象判断 ($isObject)
        • 迭代对象判断 ($isIterable)
      • obj
        • 最小项目 ($min)
        • 最大项目 ($max)
        • 属性获取 ($prop)
        • 参数转换 ($parseQuery)
      • space
    • Number
      • attribute
        • 生成区间 ($range)
      • prototype
        • 区间判断 ($in)
        • 格式化 ($format)
    • String
      • prototype
        • 字符索引 ($at)
        • 格式化 ($format)
        • 文本解码 ($decodeUnicode)
        • 文本复制 ($copyToClipboard)
        • 参数转换 ($parseQuery)
        • 转换拼音 ($toPinyin)
        • 转换表格 ($toCsv)
        • 转换图片 ($toBase64Img)
    • Array
      • attribute
        • 元素打包 ($zip)
      • prototype
        • 元素索引 ($at)
        • 元素最小值 ($min)
        • 元素最大值 ($max)
        • 元素求累加 ($sum)
        • 元素求平均 ($avg)
        • 元素映射 ($map)
        • 元素搜索 ($where)
        • 元素归并 ($merge)
        • 元素移除 ($remove)
        • 元素交换 ($swap)
        • 元素排序 ($sorted)
        • 元素打乱 (shuffled)
        • 索引重命名 ($reindex)
    • Date
      • prototype
        • 格式化 ($format)
    • NodeList
      • prototype
        • 元素映射 ($map)
        • 元素过滤 ($filter)
    • HTMLCollection
      • prototype
        • 元素映射 ($map)
        • 元素过滤 ($filter)
        • 元素迭代 ($forEach)
    • HTMLElement
      • attribute
        • 创建元素 ($mkel)
      • prototype
        • 插入元素 ($before)
        • 监听元素 ($monitor)
  • 作者想说

    • 若想要增加其他常用函数,欢迎留言反馈
    • 作者有空就更新

使用说明

脚本定义的函数,大部分定义于常用类的 attributeprototype 中,小部分被定义于 window.ut 中,具体函数使用说明请参照脚本代码详情页

更多脚本

欢迎打赏

  • 本脚本为作者本着开源精神而编写,使用完全免费,目的是为了大家的使用更方便
  • 欢迎一键三连(好评+打赏+收藏),你的支持是作者维护下去的最大动力!
  • 打赏通道