Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including jflib with all npm packages installed. Try it out:

var jflib = require("jflib")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jflib v1.0.1

JavaScript lib

前端脚本库

使用

安装

浏览器环境:

// 完整引入
<script src="jfe.umd.min.js"></script>
// 按需引入
<script src="jfe.util.umd.min.js"></script>

通过 npm:

$ npm install jflib --save

在组件中引入

// 按需引入
import {util} from 'jflib'
// 使用
let arr = [3,4,4,33,4,3,4]
util.unique(arr) // [3,4,33]

// 完整引入
import JFE from 'jflib'
// 使用
let arr = [3,4,4,33,4,3,4]
JEF.util.unique(arr) // [3,4,33]

JFE.util

常用工具包 如:数组,字符串,类型判断,验证等

JFE.charts

图表工具包,如:echarts,d3,等图表

JFE.vsual (开发中...)

可视化组件包,如:3D地图,星云效果等

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free