Blogger Information
Blog 24
fans 0
comment 0
visits 16387
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
JavaScript语法基础-2018年9月11日
鱼越龙门的博客
Original
515 people have browsed it

今天学习了JavaScript语法基础

代码:

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function Cperson(name,age){
            var p=new Object();
            p.name=name;
            p.age=age;
            return p;
        }
        function  Person(name,age) {
            this.name=name;
            this.age=age;
        }
      function Person() {
          Person.prototype.name='tom';
          Person.prototype.age=18;
      }
    </script>
</head>
<body>

</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post