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

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

  •  
  •   TomatoYuyuko · 2019-01-14 14:42:28 +08:00 · 2079 次点击
    这是一个创建于 1927 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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   ·   我们的愿景   ·   实用小工具   ·   3751 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:27 · PVG 12:27 · LAX 21:27 · JFK 00:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.