• 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(用这种会被打死)
  • 相关阅读:
    微信小程序自定义navigationBar
    微信小程序-自动定位并将经纬度解析为具体地址
    a conexant audio couldnot befound
    平衡二叉树(AVL)java实现
    二叉树的各种非递归遍历
    选择排序
    快速排序
    冒泡排序
    数组洗牌
    haffman树c实现
  • 原文地址:https://www.cnblogs.com/ssaylo/p/13092743.html
Copyright © 2020-2023  润新知