您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
rxliuli 在浏览器上使用的 js 工具集
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/382120/833505/rx-util.js
rx-util has nothing to do with the famous rx series(rxjs/rxjava/...) , just the first two of my user name(rxliuli), don't misunderstand!
I need a lot of the same functions when writing a traditional front end every day, so I need to write a library that I can use on my browser, and that's it. Most of the code in the library has passed unit testing, but please be cautious in production environments. Most of the parts that do not contain unit tests are DOM operation-related functions, as well as some asynchronous code.
If you encounter any problems, please feel free to mention the issue , or PR .
Download rx-util.min.js and import it in HTML
<script src="https://github.com/rxliuli/rx-util/raw/master/dist/rx-util.min.js"></script>
The development environment is more recommended to use rx-util.js with uncompressed code and all comment content.
If you use a modern front-end build tool (real projects are not used, but our tests are available), you can also install them into your project.
yarn
yarn add rx-util
Or npm
npm i rx-util
Then use the named import to
import { dateFormat } from 'rx-util'
or
import * as rx from 'rx-util'