在一种计算面积的方法中,在定义变量时,我使用了这个,而在另一个方法中(在计算周长时)我没有使用(如代码所示)。两个变量之间的区别是什么(有和没有这种区别?)this.height * this.width; //here "this" is used for the variable areaRec to calculate & be returned
returnthis.width)); //here without &q
就像我有一个User类一样,它看起来更像是后端的问题: constructor(name, age) { }
return 'Hi, I am ' + this.name + ' and I am ' + this.age+ ' years old'}
为什么用户创建会发生在前端,而不是将数据提供给后端以存储和保存其可能存