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

s.return(),这种关键字作方法名,怎么改才能在 IE 兼容?

  •  
  •   woIstLiebe · Aug 10, 2018 · 1262 views
    This topic created in 2822 days ago, the information mentioned may be changed or developed.
    webpack 打包出来的 js
    比如 a.return 这种属性是关键字的,在 IE 里面不兼容,可以改成 a["return"]
    但是类似 s.return(),关键字作方法名了,怎么改?
    2 replies    2018-08-10 10:57:18 +08:00
    yihouzenmeban
        1
    yihouzenmeban  
       Aug 10, 2018
    s['return']()
    woIstLiebe
        2
    woIstLiebe  
    OP
       Aug 10, 2018
    @yihouzenmeban 谢谢啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2474 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:46 · PVG 10:46 · LAX 19:46 · JFK 22:46
    ♥ Do have faith in what you're doing.