JS can "display" data in different ways:
(1)Writing into an alert box, using window.alert();
1 <!DOCTYPE html> 2 <html> 3 <body> 4 <h1>My first example.</h1> 5 <script> 6 window.alert(5 * 6); 7 </script> 8 </body> 9 </html>
JS can "display" data in different ways:
(1)Writing into an alert box, using window.alert();
1 <!DOCTYPE html> 2 <html> 3 <body> 4 <h1>My first example.</h1> 5 <script> 6 window.alert(5 * 6); 7 </script> 8 </body> 9 </html>
相关文章: