如何用HBuilderX写JavaScript
1、打开HBuilderX,创建一个项目,在JS中写入代码。

3、在<script></script>标签中写代码。这里输出一句话:hello word<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <input/ type="button" value="按钮" onclick="method1();"> <script> function method1(){ alert("hello word!"); } </script> </body></html>
