【JS】 初识JS原型
摘要://this 和 prototype 的区别 //1.this 声明的成员 属于AA类;prototype 声明的成员 属于原型所有 //2.在 var aa=new AA() 时, aa将拥有prototype和this的所有成员;调用一个成员时会先去this(即属于AA类的成员)里面找,再去pr
阅读全文
posted @ 2017-09-21 16:24
posted @ 2017-09-21 16:24
posted @ 2017-09-12 16:46
posted @ 2017-09-07 13:30
posted @ 2017-09-01 14:30