abstract:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>事件</title></head><body> <script type="text/javascript"> function my
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>事件</title>
</head>
<body>
<script type="text/javascript">
function myfovus(x){
x.style.background="red"
}
function myclic(y){
y.style.borderRadius="50px"
}
</script>
姓名:<input type="text" onfocus="myfovus(this)">
<br>
<br>
<div style="width: 100px;height: 100px;border: 1px solid #ccc; background:pink;" onclick="myclic(this)"></div>
</body>
</html>
Correcting teacher:灭绝师太Correction time:2019-01-16 09:08:30
Teacher's summary:是js事件不是Java哦!代码测试的比较敷衍啊,那么多事件要多多测试啊!