摘要:<!DOCTYPE> <html> <head> <meta charset="utf-8"> <title>变量的作用域</title> </head> <body> <script type="text/javascript&
<!DOCTYPE> <html> <head> <meta charset="utf-8"> <title>变量的作用域</title> </head> <body> <script type="text/javascript"> function myfun(x){ x.style.background="yellow" } function myfun_1(y){ y.style.background="white" } function myfun_2(z){ z.style.borderRadius="40px" } function myfun_3(w){ w.style.borderRadius="100px" } </script> 我的姓名:<input type="text" onfocus="myfun(this)" onblur="myfun_1(this)"></input> <br> <div style="height:200px; width:200px; border:1px solid black; background:pink" onmouseover="myfun_2(this)" onmouseout="myfun_3(this)"></div> </body> </html>
批改老师:灭绝师太批改时间:2019-01-06 09:28:27
老师总结:完成的不错,可以适当的在代码中加入备注,提高记忆效率!