V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
tomtom9
V2EX  ›  问与答

问下大家,在 function 里定义的 type 和在 function 外定义有区别嘛? Typescript

  •  
  •   tomtom9 · 2022-11-22 06:39:28 +08:00 · 218 次点击
    这是一个创建于 547 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这里的 function 是 function component ,是在写前端时遇到的疑惑,感谢!


    我能想到的就只有作用域的区别了。
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2680 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:10 · PVG 21:10 · LAX 06:10 · JFK 09:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.