标签:javascript
<span style="font-family: Arial, Helvetica, sans-serif;">function blink(e_Id, second) {</span>
var soccer = document.getElementById(e_Id); soccer.style.visibility = (soccer.style.visibility == "hidden") ? "visible" : "hidden" setTimeout(_show(e_Id, second), second); } function _show(name, second) { return function() { blink(name, second); } }
setOutTime函数传递参数,需要一个中间过度函数来返回一个无参函数。
标签:javascript
原文地址:http://blog.csdn.net/gisredevelopment/article/details/28325713