script src http ajax googleapis com ajax libs jquery jquery js script

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js"></script>
<script src="jquery.debounce-1.0.4.js"></script>
<script>
$(function(){
$('#button').click(
$.throttle( function(){
$('.log').append('<div>click</div>');
}, 5000)
);
});
</script>
<input id="button" type="button" value="click" />
<p>Log:</p>
<div class="log">
</div>