window.postMessage允许多个 window/frame之间跨域传递数据和信息。下面为大家介绍下window.postMessage的工作原理,以及如何在Firefox,IE8+,Opera,Safari和Chrome中使用它