摘要: 1 //普通函数 2 function box(){ //函数名称 3 return "LEE"; 4 }; 5 alert(box()); //执行 6 7 -----------------------------------------------... 阅读全文
posted @ 2015-06-10 13:22 hutaotaotao 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1 window.onload=function(){ 2 var box=document.getElementById("box"); 3 //alert(box.offsetTop); //margin:20px; 4 //alert(box.offsetParen... 阅读全文
posted @ 2015-06-10 13:19 hutaotaotao 阅读(389) 评论(0) 推荐(0) 编辑