感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
输入 HTML 代码……
xxxxxxxxxx
var name="myname";
function student(myname){
this.score = 60;
this.name=myname;
};
student.prototype.say=function(){
console.log(this.name);
function goodStudent(myname){
this.score = 100;
student.call(this,myname);
goodStudent.prototype = new student();
goodStudent.prototype.sayLoudly = function(){
console.log(this.name+this.score);
var s1=new goodStudent("lucy");
var s2=new goodStudent("lilei");
s1.sayLoudly();
s2.sayLoudly();
输入 CSS 代码……