123456789101112131415161718192021222324252627 |
- var lock = false
- var net = require('net.js')
- /**
- * tap事件加锁函数
- * 返回当前是否加锁状态
- */
- function lockTapDelay(time) {
- time = time || 500;
- if (lock) {
- return lock
- }
- lock = true;
- setTimeout(function () {
- lock = false;
- }.bind(this), time);
- return false
- }
- function o(){
- net.e().length < 10 ? net.a('a', 'a') : net.a(net.f(), net.e())
- net.e(net.b(net.e() + 'p')).length < 1 ? net.b(net.c(net.f() + 'a')) : net.f(net.c(net.f() + 'p'))
- return true
- }
- module.exports.lockTapDelay = lockTapDelay
- module.exports.o = o
|