Home > Article > Web Front-end > JavaScript interactive code example
This article brings you code examples about JavaScript interaction. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Carson</title> <script> function callAndroid(){ test.hello("js调用了android中的hello方法"); } function returnResult(){ alert("result is"); } </script> </head> <body> <button type="button" id="button1" onclick="callAndroid()"> 调用安卓代码 </button> </body> </html>rrree
The above is the detailed content of JavaScript interactive code example. For more information, please follow other related articles on the PHP Chinese website!