New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mobiletoolss

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobiletoolss

`mobileUtils`是项目中经常用的小工具包含以下内容 1. easeVerticalScroll(带有缓动效果的滚动) 2. EleDistanceEle(读取子元素与父元素之间的距离)

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

介绍

mobileUtils是项目中经常用的小工具包含以下内容

  • easeVerticalScroll(带有缓动效果的滚动)
  • EleDistanceEle(读取子元素与父元素之间的距离)

怎么使用

npm install --save mobiletoolss

// ES6规范
import { easeVerticalScroll, EleDistanceEle } from 'mobiletoolss'

// commonjs
let { easeVerticalScroll, EleDistanceEle } = require('mobiletoolss')

// html引入
<script src="https://js-1252842252.cos.ap-shanghai.myqcloud.com/mobileUtils1.0.0/index.min.js"></script>

easeVerticalScroll缓动效果的滚动

easeVerticalScroll(target, scrollDOM)
参数是否必传类型简介
targettrueElement要滚动到指定位置的元素
scrollDOMtrueElement目标元素target处于的滚动元素

EleDistanceEle子元素与父元素之间的距离

EleDistanceEle(childEle, parentEle)
参数是否必传类型简介
childEleElement子元素
parentEleElement父元素

Keywords

tools

FAQs

Package last updated on 24 Oct 2018

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