long clickTime = 0;
/**
* 双击事件时间
* 在Javase中应用较多
* @return
*/
public boolean checkClickTime() {
long nowTime = (new Date()).getTime();
if ((nowTime - clickTime) < 300) {
clickTime = nowTime;
return true;
}
clickTime = nowTime;
return false;
}
/**
* 双击事件时间
* 在Javase中应用较多
* @return
*/
public boolean checkClickTime() {
long nowTime = (new Date()).getTime();
if ((nowTime - clickTime) < 300) {
clickTime = nowTime;
return true;
}
clickTime = nowTime;
return false;
}