```
class Action {
// 將內部的步驟或者邏輯封裝到一個方法里,對外只需調用一個handle方法
handle ( ) {
handle1( )
handle2( )
handle3( )
}
handle1 ( ) {
console.log(1)
}
handle2 ( ) {
console.log(2)
}
handle3 ( ) {
console.log(3)
}
}
```