摘要:
insertAdjacentHTML() 原生js添加节点element.insertAdjacentHTML(position,text); var obj = document.getElementById("btn1"); obj.insertAdjacentHTML("afterEnd"," 阅读全文
摘要:
//构造函数 function Star(uname,age){ this.uname=uname; this.age=age; } var ldh=new Star("刘德华",49); //只要是对象,都会有一个属性__proto__,__proto__指向构造函数的原型对象(prototype 阅读全文