Home > front end >  Javascript three element method
Javascript three element method

Time:05-13

<body>
AABB

<script>
Var a=document. GetElementById (' box ');
The console. Dir (a);
</script>
AABB

<script>
Var b=document. GetElementsByClassName (' test ') [1];
The console. Dir (b);
</script>
AABB

<script>
Var c=document. QuerySelector (bock, "");
The console. Dir (c);
</script>

CodePudding user response:

TagName can also
  • Related