你的位置:首页 > 软件开发 > Java > typeof知多少

typeof知多少

发布时间:2016-02-20 23:00:09
typeof知多少昨天同事给我看了一道代码题,是关于typeof的,感觉挺有意思的,在这里分享给大家,顺便自己再对typeof总结总结。如有不对,请给予指出,共同进步。代码是这样的: <!DOCTYPE html> <head> <title& ...

typeof知多少

typeof知多少

昨天同事给我看了一道代码题,是关于typeof的,感觉挺有意思的,在这里分享给大家,顺便自己再对typeof总结总结。如有不对,请给予指出,共同进步。

代码是这样的:

 <!DOCTYPE html> <head>    <title>typeof</title>    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>  </head>  <body>    <script>      var a= a||null;       var b= c||null;       var c= typeof f;      console.log(a);      console.log(b);      console.log(c);    </script>  </body></html>

原标题:typeof知多少

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录