简体   繁体   English

启用帧间通信的postMessage方法的最大大小是多少?

[英]What is the maximum size for the postMessage method that enables inter-frame communication?

It's not clear from searching on Google and looking through documentation. 通过在Google上搜索并查看文档并不清楚。 What's the maximum length on a message sent via Window.postMessage ( https://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage )? 通过Window.postMessagehttps://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage )发送的消息的最大长度是多少? We assume this varies by browser? 我们假设这会因浏览器而异吗?

As a data point, the WebKit implementation (used by Safari and Chrome) doesn't currently enforce any limits (other than those imposed by running out of memory). 作为数据点,WebKit实现(由Safari和Chrome使用)目前不会强制执行任何限制(除了内存不足所强加的限制)。

Source : http://webcache.googleusercontent.com/search?q=cache:1qOB8DZlBCkJ:lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-October/235564.html+&cd=2&hl=en&ct=clnk&gl=in&client=firefox-a 资料来源: http//webcache.googleusercontent.com/search? q = cache = 1qOB8DZlBCkJ: lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-October/235564.html+&cd=2&hl=en&ct= clnk&GL =在&客户=火狐-一个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM