标签:style blog io ar java div 2014 art on
function blink(e_Id, second) {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函数传递參数,须要一个中间过度函数来返回一个无參函数。
标签:style blog io ar java div 2014 art on
原文地址:http://www.cnblogs.com/lcchuguo/p/3996428.html