- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 js判断移动端手指的上滑,下滑,左滑,右滑,事件监听
原理:1:当开始一个touchstart事件的时候,获取此刻手指的横坐标startX和startY; 2:当触发touchmove事件的时候,再获取此时手指的横坐标moveEndX和纵坐标moveEndY;最后,通过两次获取的坐标差值来判断手指在手机屏幕上的滑动方向。代码: document.getElementById("id").addEventListener("touch...
2018-09-12 16:37:35 9663
前端MD5加密 js代码文件
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
*
避免请求时密码等明文显示在请求中
2020-10-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人