zoukankan      html  css  js  c++  java
  • JavaScript 语句 Statement

    • Atom
    • Expression
    • Statement #这里讲的主要是这个 看 ECMA-262 里面就能够很清晰的看到这些JS 的statement
    • Structure
    • Program/Module

    Grammar

    简单语句
    • Expression Statement 表达式语句
      • a = 1 + 2;
    • Empty Statement 空语句
      • ;
    • Debugger Statement debugger语句,运行时不产生作用
      • debugger;
    • ThrowStatement
      • throw a;
    • Continue Statement(与循环相互匹配)
      • continue label1;
    • Break Statement(与循环匹配)
      • break label2;
    • Return Statement
      • return; / return 1;
    组合语句
    • Block Statement
    {
    ...
    ...
    }
    
    • Iteration
    while()
    do...while
    for
    for...in...
    for...of...
    
    声明
    • FunctionDeclaration
    • GeneratorDeclaration
    • AsyncFunctionDeclaration
    • AsyncGeneratorDeclaration
    • VariableStatemeny
    • ClassDeclaration
    • LexicalDeclaration
    标签、循环、break、continue
    • LabelledStatement
    • IterationStatement
    • ContinueStatement
    • BreakStatement
    • SwitchStatement

    Runtime:

    • Complection Record
      • [[type]]: normal, break, continue, return, throw
      • [[value]]: Types
      • [[target]]: label
    • Lexical Enviorment(推荐使用前三种)
      • {} . [] Object.defineProperty
      • Object.create Object.setPrototypeOf Object.getPrototypeOf
      • new class extends
      • new function prototype(用这种会被打死)
  • 相关阅读:
    scrapy模拟用户登录
    我为什么选择Vim
    关于72键配列键盘的想法
    vim配图
    解决一些python的问题记录
    ros资料记录,详细阅读
    C语言的历史
    将制定目录家到系统PATH环境变量中
    让vim更加智能化
    如何自定义路径
  • 原文地址:https://www.cnblogs.com/ssaylo/p/13092743.html
Copyright © 2011-2022 走看看