<!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>
4 answers
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
Hot tools Tags
Hot Questions
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
20524
7
13634
4






