Coder Utils

【使用前先看介绍/有问题可反馈】【欢迎一键三连(好评+打赏+收藏),你的支持是作者维护下去的最大动力!】Coder Utils(程序员专属工具)为程序员专门准备的常用 JavaScript 函数;目前已有:生成区间、发送请求、下载Blob、下载表格、下载图片、文本复制、文本解码、中文转拼音、数组排序、数组索引、对象映射、内容合并、属性替换、属性获取、对象拷贝、参数转换、有效类型判断、有效数字判断、有效对象判断、可迭代对象判断、字符串格式化、日期格式化、数字格式化;脚本定义的所有函数被定义于 window.utils 中,具体函数使用说明请参照脚本代码详情页。

As of 2021-01-09. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
kalila-cc
Ratings
0 0 0
Version
0.3.8
Created
2020-12-06
Updated
2021-01-09
Size
97 KB
License
N/A
Applies to
All sites

Coder Utils(程序员专属工具)

脚本介绍

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

  • 已有函数

    • 通用
      • 生成区间 (range)
      • 发送请求 (sendRequest)
    • 下载
      • 下载Blob (downloadBlob)
      • 下载表格 (downloadCsv)
      • 下载图片 (downloadBase64Img)
    • 文本
      • 文本复制 (copyToClipboard)
      • 文本解码 (decode)
      • 中文转拼音 (pinyin)
    • 数组
      • 数组排序 (sorted)
      • 数组索引 (indexOf)
    • 对象
      • 对象映射 (map)
      • 内容合并 (merge)
      • 属性替换 (rename)
      • 属性获取 (deepProp)
      • 对象拷贝 (deepCopy)
      • 参数转换 (parseQuery)
    • 类型
      • 有效类型判断 (isValid)
      • 有效数字判断 (isValidNumber)
      • 有效对象判断 (isObject)
      • 可迭代对象判断 (isIterable)
    • 格式化
      • 字符串格式化 (strFormat)
      • 日期格式化 (dateFormat)
      • 数字格式化 (floatFormat)
  • 作者想说

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

使用说明

脚本定义的所有函数被定义于 window.utils 中,具体函数使用说明请参照脚本代码详情页


更多脚本


欢迎打赏

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