https://facebook.github.io/react-native/docs/webview#onload
文档说明onload是一个Function that is invoked when the WebView has finished loading.
具体触发此操作的是什么操作?它是在页面中的所有脚本都运行完之后触发的,还是在DOM完成加载后触发的?有没有一个回调来告诉webview这个页面已经完成了?
发布于 2019-05-29 22:30:19
https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event
当DOMContentLoaded事件被激发时,React Native的webview就被踢开了。这意味着DOM已完成加载,但网站不一定完全完成加载,此时可能会继续运行脚本(如果有的话)。
https://stackoverflow.com/questions/56296145
复制相似问题