Blogger Information
Blog 38
fans 1
comment 0
visits 26117
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
javascript基础语法--2018年09月12日14时47分
一根火柴棒的博客
Original
472 people have browsed it

编程: 创建对象的方式(字面量或构造函数):

实例

<meta charset="UTF-8">
<title>Title</title>
<script>
    function Stu(name,age) {
        $this.name = name;
        $this.age = age;
    }
</script>

运行实例 »

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


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