Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Amaze UI 在线调试</title>
<link rel="stylesheet" href=""/>
<button onclick="callFlutter()">callFlutter</button>
<button onclick="callJS('hidden')">hide</button>
<p id="p1" style="visibility:hidden;">
Flutter 调用了 JS.
Flutter 调用了 JS.
Flutter 调用了 JS.
<script src=""></script>
<script src=""></script>
function callJS(message){
document.getElementById("p1").style.visibility = message;
function callFlutter(){
document.location = "js://webview?arg1=111&args2=222";
// Toast.postMessage("JS调用了Flutter");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment