// static声明静态属性和方法只属于类,不属于对象,对象直接调用会找不到的
class clothes{
static name = '运动裤';
static clothes_size(){
console.log('衣服尺寸');
}
}
let looseCoat = new clothes();
console.log(looseCoat.name);
console.log(clothes.name);
clothes.clothes_size();
looseCoat.clothes_size();