JavaScript 语法

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>W3Cschool教程(w3cschool.cn)</title>
</head>
<body>
    
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = 123e5;
</script>
    
</body>
</html>


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>W3Cschool教程(w3cschool.cn)</title>
</head>
<body>
    
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = 'John Doe';
</script>
    
</body>
</html>

 

posted on 2018-12-23 20:42  猛兽  阅读(92)  评论(0)    收藏  举报