Skip to content
/ js-xxx Public
forked from pandaoh/js-xxx

前端 JavaScript 常用函数/工具/方法库

Notifications You must be signed in to change notification settings

biugle/js-xxx

 
 

Repository files navigation

前端 JavaScript 常用函数/工具/方法库

OSCS Status

封装前端常用函数/方法/工具库,支持按需引入;无依赖和第三方库,无冗余代码,无需改动原代码结构;拆箱即用,简单便捷。

Install-安装

npm i js-xxx

Use-使用

// Es or Node
import { xFunctionName } from 'js-xxx';
const { xFunctionName } = require('js-xxx');
xFunctionName();

// Browser
<script src="/iife/index.min.js"></script>
$xxx.xFunctionName();
$xxx.formatDate(new Date(), 'mm-dd');

// 可参考 ./demo/test.js,示例如下。
import { showToast, md5, scrollToTop, formatDate, uuid } from 'js-xxx';
const { showToast, md5, scrollToTop, formatDate, uuid } = require('js-xxx');
formatDate(new Date(), 'yyyy-mm-dd hh:ii:ss');

Docs-文档

Others

About

前端 JavaScript 常用函数/工具/方法库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 90.2%
  • JavaScript 8.2%
  • TypeScript 1.4%
  • CSS 0.2%