
[英]react-native-webview this.webView.postMessage not working
[英]scrollTo() not working in react-native-webview
我目前有一个 webview 像这样:
<WebView source={{ uri: 'http://localhost:3000/view' }} />
在我的 webview 中,我有以下 javascript:
chatLineTemplate = document.querySelector('#chatLine');
clonedTemplate = chatLineTemplate.content.cloneNode(true;
element.prepend(clonedTemplate);
element.scrollTop = element.scrollHeight;
我也试过:
element.scrollTo(0, element.scrollHeight);
https://www.loom.com/share/54f6539761a84080adcc9607af7f46b0
有谁知道为什么这不起作用?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.