<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div >
<button onclick="handleButtonClick()">点一下试试</button>
</div>
<script type="text/javascript">
function handleButtonClick() {
console.log("button click");
// 通过webview注入的对象和方法
native.sendValueFromHtmlToOCWithValue("hi world");
}
</script>
</body>
</html>