var getTimeoutClick=function(){
var canClick=true;

return function(){
    if(!canClick)return;

    console.log("clicked---点击")
    canClick=false;
    setTimeout(function(){
        canClick=true;
        console.log("canClick set to true---可以再次点击了");
    },5000);//5秒后可点击
}

}

$("#clickTest").click(getTimeoutClick());

Click Me!