jquery - thinkphp+html problem
漂亮男人
漂亮男人 2017-06-07 09:23:05
0
2
493

There is a problem. One page only has buttons, and one page has words. Then click this button, and the words on the other page will change color.

漂亮男人
漂亮男人

reply all(2)
为情所困

This can help you

HTML5 postMessage communicates with the browser across windows
https://developer.mozilla.org...

B creates a message that listens to the message sent by window A, and changes color if the conditions are met

阿神

Thanks for the invitation!

There are many ways to achieve it:

1) ajax polling
2) php websocket, message push, page button message is pushed to the display page instantly
3) html postMessage cross-window messaging

In fact, it is all about letting the display get the displayed message

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template