【问题标题】:Emit Livewire event and listen in Vue component发出 Livewire 事件并在 Vue 组件中监听
【发布时间】:2021-06-05 19:29:40
【问题描述】:

有没有办法在 Livewire 组件中执行事件并在 Vue 组件中监听它?

或者从 Livewire 使用 $this->dispatchBrowserEvent('event-name'); 发出浏览器事件并在 Vue 组件中监听它?

这种交流真的可以实现吗?

请有任何建议。谢谢!

【问题讨论】:

    标签: vue.js events laravel-livewire listen


    【解决方案1】:

    您可以结帐livewire/vuegithub页面。

    您可以从那里关注Dispatching Browser Events docs。

    【讨论】:

      猜你喜欢
      • 2021-12-30
      • 1970-01-01
      • 2021-12-05
      • 2020-06-25
      • 2021-12-27
      • 1970-01-01
      • 1970-01-01
      • 2019-10-23
      • 2019-07-20
      相关资源
      最近更新 更多