zoukankan      html  css  js  c++  java
  • (2)javascript 基本概念 -- 关键字、保留字

    关键字

    break do instanceof typeof
    case else           new var
    catch finally return void
    continue for switch while
    debugger function this with
    default if throw delete
    in try    

    ECMA-262 第三版保留字 

    abstract enum int short
    boolean export interface static
    byte extends long super
    char final native synchronized
    class float package throws
    const goto private transient
    debugger implements protected volatile
    double import public  

    还有在严格模式下的保留字,就不列出来了 

       不用熟记关键字,只需要知道平时在写js的时候用到的都是关键字,例如var if else function 等等,这样你就知道哪些是关键字了。

      保留字是即将可能会用到的只需要稍微注意下,不要用平时写其它语言的关键字来做js的标识符就行了。

  • 相关阅读:
    mysql批量替换指定字符串
    php中英字符串截取
    比较两个JSON字符串是否完全相等
    Java FastJson 介绍
    线程池
    DBUS及常用接口介绍
    在Mac中如何正确地设置JAVA_HOME
    base64 原理
    sizeof与strlen的区别
    Kubernetes 部署失败的 10 个最普遍原因
  • 原文地址:https://www.cnblogs.com/lihaozhou/p/3571473.html
Copyright © 2011-2022 走看看