V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
TomatoYuyuko

js 里有哪些不加分号结尾导致编译结果不同的例子?

  •  
  •   TomatoYuyuko · Jan 14, 2019 · 2562 views
    This topic created in 2674 days ago, the information mentioned may be changed or developed.
    2 replies    2019-01-16 10:39:14 +08:00
    noe132
        1
    noe132  
       Jan 14, 2019
    https://eslint.org/docs/rules/semi#options

    "never" disallows semicolons as the end of statements (except to disambiguate statements beginning with [, (, /, +, or -)
    redbuck
        2
    redbuck  
       Jan 16, 2019
    for()
    (function() {})()
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3284 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:01 · PVG 21:01 · LAX 06:01 · JFK 09:01
    ♥ Do have faith in what you're doing.