0
A
回答
3
function outfunction(event) {
var that = this; // to be able to use this later.
window.setTimeout(function() {
…
/* you can use 'that' here to refer to the element
event is also available in this scope */
}, 3000);
}
+0
您应该将事件对象传递给内部匿名函数。 – Triptych 2008-12-21 21:04:50
1
var doSomething = function() {
//Some code will here after 3 seconds of mouseout
};
anElement.onmouseout = function() {
setTimeout(doSomething, 3000);
};
什么上面的代码确实是onmouseout
3秒被调用
相关问题
- 1. Javascript的睡眠功能,而
- 2. Javascript循环与睡眠
- 3. PHP usleep /睡眠
- 4. 睡眠和睡眠开始错误
- 5. PHP睡眠VS庆典睡眠
- 6. 睡眠()或睡眠()的准确程度
- 7. 如何禁用睡眠/睡眠功能?
- 8. 睡在睡眠中的NSTimer
- 9. 打字稿睡眠
- 10. Javascript onmouseout事件
- 11. Onmouseover OnMouseout javascript
- 12. setVisibility睡眠
- 13. iPhone和睡眠
- 14. 删除睡眠
- 15. NSThread的睡眠
- 16. actionscript 3睡眠?
- 17. 睡眠()超时
- 18. 需要JavaScript的睡眠()的替代
- 19. 如何在javascript中进行睡眠?
- 20. JavaScript的睡眠功能由无极环
- 21. 使用Javascript的睡眠功能
- 22. JavaScript动画睡眠时间调整
- 23. 需要在javascript中阻止睡眠
- 24. Synchonizing睡眠和QTimer
- 25. 无限期睡眠
- 26. PHP停止睡眠
- 27. Andengine睡眠线程?
- 28. HealthKit - 显示睡眠
- 29. jQuery睡眠功能?
- 30. 睡眠或等待()
我会用这个词是延迟后执行
doSomething
功能。 – AnthonyWJones 2008-12-21 21:11:28