一个简单的输入输出:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
<!--简单的script-->
var name=window.prompt("请输入姓名");
var welcome='欢迎光临'+name;
document.write(welcome);
// var name_1=100;
// var name_2=200;
// var string_1="100";
// document.write(name_1+name_2-string_1);
</script>
</head>
<body>
</body>
</html>
输出: