일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- 선택적조인
- dock
- sencha touch
- rowspan
- phonegap
- Spring
- JSON
- swingx
- WebLogic
- jsr 296
- Android
- MFC
- iBATIS
- node.js
- JDOM
- tomcat
- 가우스
- Google Map
- GPS
- ibsheet
- Struts
- PLSQL
- 전자정부프레임워크
- Ajax
- oracle
- MySQL
- jQuery
- Eclipse
- appspresso
- PHP
Archives
- Today
- Total
Where The Streets Have No Name
Delaying JavaScript Execution 본문
출처 : http://www.matts411.com/post/delaying_javascript_event_execution/
var onFooEndFunc = function() {
var delay = 50; /* milliseconds - vary as desired */
var executionTimer;
return function() {
if (executionTimer) {
clearTimeout(executionTimer);
}
executionTimer = setTimeout(function() {
// YOUR CODE HERE
}, delay);
};
}();