亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

動(dòng)畫(huà)事件的處理

Original 2019-08-17 23:15:46 1511
abstract:<!DOCTYPE html><html lang="en"><head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, in

<!DOCTYPE html>

<html lang="en">

<head>

   <meta charset="UTF-8">

   <meta name="viewport" content="width=device-width, initial-scale=1.0">

   <meta http-equiv="X-UA-Compatible" content="ie=edge">

   <title>Document</title>

</head>

<body>

   <script>

      function myfovus(x){

          x.style.background='yellow'

      }

      function onlick(y){

          y.style.borderRadius="50px"

      }

   </script>

   姓名:<input type="text" onfocus="myfovus(this)">

   <br>

   <br>

   <div style="width: 200px;height: 200px;border:1px solid black" onclick="onlick(this)"></div>

</body>

</html>


Correcting teacher:天蓬老師Correction time:2019-08-19 09:35:07
Teacher's summary:通過(guò)屬性添加事件, 并不符合dom2標(biāo)準(zhǔn), 推薦使用addEventListner

Release Notes

Popular Entries