由 hrs 提交于 2020/11/05 - 08:15 , 周四 使用console.log()方法来显示数据 实例代码: <!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <h2>按F12启动</h2> <p>在debuger中选择“console”。然后再次点击运行按钮。</p> <script> console.log(5+6); //使用 console.log() 方法来显示数据。 </script> </body> </html> 运行效果: 标签 JavaSrcipt 登录或注册以发表评论