0
点赞
收藏
分享

微信扫一扫

js 输入与输出

圣杰 2022-02-13 阅读 63
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <!-- 2.内嵌式的js -->
    <script>
        //prompt 这是一个输入框
        prompt('请输入你的名字');
        //alert 弹出警示框 输出的 展示给用户的
        alert('亦');
        // console 控制台输出 给程序员测试用的(按F12)
        console.log('我是程序员能看到的');
    </script>
    <!-- 3.外部js script 双标签 -->
   
</head>
<body>
    <!-- 1.行内式的js-->

</body>

</html>
举报

相关推荐

0 条评论