标签:
public class ButtonUtils { private static long lastClickTime; public synchronized static boolean isFastClick() { long time = System.currentTimeMillis(); if (time - lastClickTime < 500) { return true; } lastClickTime = time; return false; } }
使用的时候:
标签:
原文地址:http://www.cnblogs.com/zzw1994/p/5163676.html