1、 判断是否为快速点击
/** 判断是否是快速点击 */ private static long lastClickTime; public static boolean isFastDoubleClick() { long time = System.currentTimeMillis(); long timeD = time - lastClickTime; if (0 < timeD && timeD < 500) { return true; } lastClickTime = time; return false; }
时间: 2024-12-18 02:38:58