zoukankan      html  css  js  c++  java
  • 7.typeof的用法

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>typeof的功能和用法演示</title>
    <script  type="text/javascript">
    document.write("<h2>对变量或值调用typeof运算符返回值:</h2>");
    var width,height=10,name="rose";
    var date=new Date();   //获得时间日期对象
    var arr=new Array();   //定义数组
    document.write(" "+typeof(width)+"<br>");
    document.write("height: "+typeof(height)+"<br>");
    document.write("name: "+typeof(name)+"<br>");
    document.write("date: "+typeof(date)+"<br>");
    document.write("arr: "+typeof(arr)+"<br>");
    document.write("true: "+typeof(true)+"<br>");
    document.write("null: "+typeof(null));
    </script>
    </head>
    
    <body>
    </body>
    </html>
  • 相关阅读:
    NOI 模拟赛
    bzoj 4998 星球联盟
    bzoj 4545 DQS 的 Trie
    loj #161 子集卷积
    bzoj 5093 图的价值
    bzoj 4299 Codechef FRBSUM
    NOI 模拟赛
    WC2018 州区划分
    CSP 2020 T2 动物园
    CSP 2020 T1 儒略日
  • 原文地址:https://www.cnblogs.com/xiaotaoxu/p/5544553.html
Copyright © 2011-2022 走看看