在运行时开始加载时更新 WebView 中的内容

Update content in WebView on loading start in runtime

加载开始后,我需要在 webview 上添加相同的内容。例如,如果我有网页:

<head>
</head>
<body>
</body>

我需要

<same content/>
<head>
<head>
<body>
</body>

<same content/> 必须在 <head> 之前加载 你有什么想法吗?

可以通过覆盖方法 loadDataloadDataWithBaseURL