It has been 580 days since the last update, the content of the article may be outdated.这是JavaScript课堂的学习实际应用已经应用在博客上了,是有我亲自进行编写的一些项目以下是课堂上的源码,我单纯进行保存顺便解释相应的用法js123456789101112131415161718<body><!-- <script src="test.js"></script>--><!-- <input type="button" value="test" onclick="alert('test')"/>--><!-- <script> alert("342") </script>--> <script>// window.alert(5+6);//调用Windows的弹窗// console.log("console");// console.log(prompt("today is?"));//弹出窗口,将信息输入后传递到控制台// console.log(confirm("you talk mieye?"));//弹出窗口,做出判断传递到控制台// document.write(confirm("you talk mieye?"));//弹出窗口,将信息传到网页上显示// document.write(prompt("you is message?")); //这是让计算机弹出一个窗口,你输入数据,会被写入界面上 console.log(alert('Hello')) //弹出窗口显示hello </script></body>