<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>php.cn</title>
<script type="text/javascript">
//在<body>中输出一句话
document.write("欢迎来到php.cn");
window.alert("Sorry,The paassword your input is uncorrect,Please try again!")
</script>
</head>
<body>
</body>
</html>
寻觅 beyond2018-03-17 23:58:36
Characteristics of the JavaScript language:
There is no need to add a semicolon after each statement. This is the case when only one statement is written in one line;
If multiple statements are written in one line, each statement It is necessary to use a semicolon to separate;
But most languages require a semicolon at the end. In order to get used to it
so, it is voluntary to add it or not, but it is recommended to add it