Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

cxl-js

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

cxl-js

工具库;工具类;tools; utility;utils;

unpublished
latest
Source
npmnpm
Version
2.3.1
Version published
Maintainers
1
Created
Source

cxl-js

处理边界问题

Install

npm i cxl-js --save

or

yarn add cxl-js

usage

import {scroll} from 'cxl-js';

scroll.scrollTo(1000, 200);

In browser

<script src="https://unpkg.com/cxl-js@latest"></script>

cxl.scroll.scrollTo(1000, 200);

methods

scroll

src/scroll

  • scrollTo
  • getScrollTop
  • setScrollTop
  • offset

src/cookie

  • getCookie
  • setCookie
  • removeCookie

browser

src/browser

  • onMobileViewportResize
  • getExplore
  • getOS
  • isIE
  • isSupportWebP
  • getClientHeight
  • getClientWidth
  • getClientSize
  • launchFullscreen
  • exitFullscreen
  • openWindow
  • stopContextmenuAndSelectAndCopy
  • autoResponse
  • store

arr

src/array

  • isEqual

obj

src/object

  • isEqual
  • deepClone
  • isEmpty

str

src/string

  • parseQueryString
  • stringifyQueryString

num

src/number

  • numberToChinese
  • random
  • money2Chinese

dt

src/date

  • timeZoneConversion
  • formatTimeFriendly
  • formatPassTime
  • formatTimestamp
  • formatRemainTime
  • isLeapYear
  • isSameDay
  • getMonthDays

mtd

src/method

  • debounce
  • throttle
  • randomColor
  • randomNum
  • photoCompress
  • imgLoadAll
  • loadAudioloadAudio
  • setCursorPosition
  • insertAtCursor
  • ajax
  • asyncForEach
  • pWait
  • copyToClipboard
  • createAndDownloadFile
  • highlight
  • excerpt
  • backTop
  • getUrlState
  • delay_js
  • onError
  • ready

reg

src/reg

  • isEmail
  • isEmail2
  • isTelCode
  • isPhoneNum
  • isCnNewID
  • isIdCard
  • isCardID
  • isColor
  • isUrl
  • isString
  • isNumber
  • isBoolean
  • isFunction
  • isNull
  • isUndefined
  • isObj
  • isArray
  • isDate
  • isRegExp
  • isError
  • isSymbol
  • isPromise
  • isSet
  • isFalse
  • isTrue
  • getType
  • isDigit
  • other

dom

src/dom

  • hasClass 是否有class
  • addClass 添加class 依赖 hasClass
  • removeClass 移出class 依赖 hasClass
  • replaceClass 替换类名
  • getKeycodeName 根据keycode获得键名
  • siblings 获取兄弟节点
  • addload 页面加载自执行函数
  • getComputedStyles 获取元素最终样式
  • getDocumentSize

base64

src/base64

blob

src/blob

Keywords

tools

FAQs

Package last updated on 24 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts