V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
TomatoYuyuko
V2EX  ›  前端开发

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

  •  
  •   TomatoYuyuko · 2019-01-14 14:42:28 +08:00 · 2066 次点击
    这是一个创建于 1900 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    2019-01-16 10:39:14 +08:00
    noe132
        1
    noe132  
       2019-01-14 14:57:31 +08:00
    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  
       2019-01-16 10:39:14 +08:00
    for()
    (function() {})()
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1150 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:32 · PVG 02:32 · LAX 11:32 · JFK 14:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.