1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>Document</title>
 6 </head>
 7 <body>
 8     <p>typeof操作符返回变量或者表达式的类型</p>
 9     <p id="demo"></p>
10     <script>
11     document.getElementById("demo").innerHTML=
12     typeof "john"+"<br />"+
13     typeof "3.14"+"<br />"+
14     typeof false+"<br />"+
15     typeof [1,2,3,4]+"<br />"+
16     typeof{name:' john',age:34};
17     
18     </script>
19 </body>
20 </html>

js--小结⑥---typeof_zzzzw_js

 

---- 动动手指关注我!或许下次你又能在我这里找到你需要的答案!ZZZZW与你一起学习,一起进步!