<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript">// function as(){// var reu =0;// for(var i =0;i<arguments.length;i++)// {// // reu+=arguments[i]// }// return reu// }// alert( as(1,23,3,423,3,3,44,34,3)) } window.onload=function(){ function css(obj,name,value,){ if(arguments.length==2){ return obj.style.name; } else{ obj.style.name=value; } var odiv=document.getElementById("div1"); css(odiv,"background",'green') } </script> </head> <body> <div id="div1" style="background: red;width: 10px;height: 100px;"> </div> </body></html>
添加回答
举报
0/150
提交
取消