花费 5 ms
Class和普通构造函数的区别

1、JS构造函数 function fn(x, y) {  this.x = x;   this.y = y;} 使用 var a = new fn(1, 2) 使用prototype进行扩展 ...

Tue Feb 19 00:15:00 CST 2019 0 536

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM