Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

xxm-test-js

xxm123158ISC1.2.18TypeScript support: included

xxm-js通用js工具(utils)库

xxm, test, js, TS, typeScript, utils, debounce, deepCopy, flattenArray, formatThousands, getQueryObject, getWeek, handleTime, isType, copyTextToClipboard, sortArray, throttle, cleanArray, copyTextToClipboard, flattenTree, convertToTree, arrayToString, stringToArray, categorizeBy, lookupDictLabel, createExistenceChecker, customSortMethod, enterFullscreen, exitFullscreen, getFullscreenElement, observeElementResize, unobserveElementResize, findPathInTree, getRandomInt, htmlEscape, htmlUnescape, cssEscape, jsEscape, workEvent, TimeThread, getRelativeTime, scrollToTop, scrollToBottom, ScrollDirectionChecker, FormValidator, deepMerge

readme

xxm-test-js js库

xxm-test-js。一个开箱即用的函数库。提供了日常开发时所需的一些常用函数方法。该js库提供了丰富的代码提示功能,方便开发者快速使用。

npm npm Build Status

查看文档

快速开始

1.安装js库

npm i xxm-test-js

2.引用js库

在组件中的使用方式

//全部引入
import xxmJs from 'xxm-test-js';

const time = new Date();
xxmJs.handelTime(time, 'yyyy-MM-dd HH:mm:ss');

//按需引入
import { handelTime } from 'xxm-test-js';

const time = new Date();
handelTime(time, 'MM-dd');