当前位置:网站首页>JS variable case output user name

JS variable case output user name

2022-07-07 04:50:00 Big bug of xiaofeichan

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <script>
        //1. The user enters the name   Save to a myname In the variables of 
        var myname = prompt(' Please enter your name ');
        //2. Output this user name 
        alert(myname);

    </script>
</head>
<body>

</body>
</html>

原网站

版权声明
本文为[Big bug of xiaofeichan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130747000923.html

随机推荐