ES6 和以前的 JS 有什么区别

2025-05-14 15:58:27
推荐回答(1个)
回答1:

ES6 是js的新标准

ES6 之前的标准 本质上都是原型继承

function P()

{
this.x = 5;

}

function S(){
this.y = 6;