最赞回答 / yindong
<!DOCTYPE html><html> <head> <title> 事件</title> <script type="text/javascript"> function count(){ debugger; //获取第一个输入框的值 var t1=document.getElementById("txt1").value;//获取第二个输入框的值 var t2=document.get...
2015-11-24
最新回答 / Gavin_wen
window.onload:意思是页面加载完成;window.onload = function()就是网页加载完成后执行此函数oLis[i].index = i;是为li添加索引下标(简单大概的意思就是为像为数组添加下标)oDivs[this.index]:这里也就是添加index的作用,通过这个索引来找到对应的div 这里的 this 就是指上面鼠标所在的导航
2015-11-23