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

ts 里面如何调用 window.onresize

  •  
  •   aglsv · Dec 7, 2021 · 2026 views
    This topic created in 1605 days ago, the information mentioned may be changed or developed.

    我想写一个window.onresize事件来监听一下窗口的变化,从而更改一些参数,不过没太搞懂 ts 里面该怎么写啊,我写在 class 外面的话该如何调用里面定义的数据呢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2481 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 07:12 · PVG 15:12 · LAX 00:12 · JFK 03:12
    ♥ Do have faith in what you're doing.