PostMessage with multiple functions or custom callbacks

前端 未结 4 997
刺人心
刺人心 2021-02-05 08:17

So far I\'ve only seen tutorials for postmessage where one window sends a single kind of message, and the other window interprets the message in only a single way.

What

4条回答
  •  一个人的身影
    2021-02-05 08:22

    I recently faced the same problem. After hours of searching i came across post-robot. It's developed by paypal and solved most of my problems including having a callback for postMessage.

    It also supports passing functions inside the payload.

    You can check out the introduction here Introducing post-robot

提交回复
热议问题