标签:函数 char doctype UNC lang lan doc color class
---恢复内容开始---
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8" /> <title>Document</title> </head> <body> <script> People.prototype ={ x:100,y:200,z:function(){alert(300);} } ; //上一级 function People(name,age){ this.name= name; this.age = age; } //类 var people = new People("张三",28); //构造函数 people.z(); //alert(people.);
构造函数
标签:函数 char doctype UNC lang lan doc color class
原文地址:https://www.cnblogs.com/aladam/p/10780112.html