应该把display:block设置在函数循环之外,然后把循环设置在另一个函数里(闭包),因为display:block只要执行一次就够了
2015-11-08
<script>
window.onload = function(){
var TipBox = document.getElementById("tipCon");
var closeBtn = document.getElementById("closeBtn");
}
</script>
window.onload = function(){
var TipBox = document.getElementById("tipCon");
var closeBtn = document.getElementById("closeBtn");
}
</script>
2015-10-21