获得徽章 3
- SMART 原则复习
1. 绩效指标必须是具体的(Specific)
2. 绩效指标必须是可以衡量的(Measurable)
3. 绩效指标必须是可以达到的(Attainable)
4. 绩效指标是要与其他目标具有一定的相关性(Relevant)
5.绩效指标必须具有明确的截止期限(Time-bound)
无论是制定团队的工作目标还是员工的绩效目标都必须符合上述原则,五个原则缺一不可。展开赞过评论3 - js中如何让一个类的内部变量不被外部访问到,可以为这个变量只声明get方法
class Rectangle {
constructor() {
this.height = 3;
}
get height() {
return this.height
}
}
const square = new Rectangle();
square.height = 100
console.log(square.height); // 100
上述代码运行结果会提示:
"TypeError: Cannot set property height of #<Rectangle> which has only a getter
at new Rectangle (<anonymous>:13:21)
at <anonymous>:27:14"展开1点赞 - js中如何让一个类的内部变量不被外部访问到,可以使用为这个变量只声明get方法
class Rectangle {
constructor() {
this.height = 3;
}
get height() {
return this.height
}
}
const square = new Rectangle();
square.height = 100
console.log(square.height); // 100
上述代码运行结果会提示:
"TypeError: Cannot set property height of #<Rectangle> which has only a getter
at new Rectangle (<anonymous>:13:21)
at <anonymous>:27:14"展开评论点赞