sanghongxv
V2EX  ›  问与答

vue 公共组件在一个页面中复用,能不能相互控制,但是数据还是独立的?

  •  
  •   sanghongxv · Feb 20, 2020 · 2596 views
    This topic created in 2473 days ago, the information mentioned may be changed or developed.
    1 replies  •  2020-02-21 00:05:27 +08:00
    sanghongxv
    sanghongxv
    OP
    Feb 21, 2020 via Android
    1
    试了试,使用 ref 传值是可以的。不知道大佬们有没有更好呢方法
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2080 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 09:11 · PVG 17:11 · LAX 01:11 · JFK 04:11
    ♥ Do have faith in what you're doing.