akira-cn / handlock Goto Github PK
View Code? Open in Web Editor NEW手势解锁密码的 demo
手势解锁密码的 demo
npm start
[email protected] start G:\chromeDownload\handlock-master
webpack-dev-server --quiet & http-server example -c-1 -p 8081
Project is running at http://localhost:8080/
webpack output is served from /js/
(node:12212) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see webpack/loader-utils#56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
npm start以后在浏览器访问http://localhost:8080/什么都没有
月影老师您好,最近在跟这个项目,代码中有一处不是很理解:
if(this.mode !== Locker.MODE_UPDATE){
await this.cancel();
this.mode = Locker.MODE_UPDATE;
}
在update
和check
方法中都先进行了判断,然后再 this.cancel();
,这里 this.cancel();
的作用是什么呢?我把这里注释掉以后,第一次设置密码可以成功,但是之后再次设置密码就会提示,设置的点不足四个。还请老师指点一下,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.