cuando selecciono el texto en Android WebView mediante selectAllChildren(node) o selection.addRange(range) en javascript. El cursor desapareció.
En IOS WKWebView, es normal.
Aquí está mi código y la imagen del error.
¿Cómo puedo mostrar el cursor? Gracias.
<!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> </head> <body>一个大大是发<span>国庆节过去了</span>点点滴滴杀杀杀<script> window.getSelection().selectAllChildren(document.getElementsByTagName('span')[0]); </script> </body> </html>