javascript基础学习七

回顾: 1、 function Student (name , age ){ this.name = name; this.age = age; } Student.prototype = {//第一句执行 sayHello : function(){ console.log("nihao"); } }; var p = new Student('zhansa',19); 代码分析: 1、首先预解
相关文章
相关标签/搜索