文件名称:broadcaster.js:无服务器交叉表消息传递
文件大小:6KB
文件格式:ZIP
更新时间:2024-06-26 08:27:12
HTML
#broadcaster.js 无服务器交叉表消息传递。 ##Usage #####Include broadcaster.js < script src =" broadcaster/broadcaster.js " > </ script > #####API window . broadcaster . broadcast ( 'this message will be broadcasted to the other tabs' ) ; window . broadcaster . onmessage = function ( message ) { console . log ( message + ' has been received from an other tab/window' ) ; } ; //key value will be shared be
【文件预览】:
broadcaster.js-master
----package.json(481B)
----broadcasterWorker.js(944B)
----LICENSE(1KB)
----broadcaster.js(4KB)
----examples()
--------media.xhtml(3KB)
--------simple.xhtml(1KB)
--------textinput.xhtml(1006B)
----README.md(2KB)