# skip

## skip

**跳过 `Observable` 中头 n 个元素**

![](https://4217506537-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWj545abP2yK86-qksJ%2Fsync%2Fa5a38f259b471d7a3adb4cefbe9883548c665084.png?generation=1616819396098465\&alt=media)

**skip** 操作符可以让你跳过 `Observable` 中头 n 个元素，只关注后面的元素。

## 演示

```swift
let disposeBag = DisposeBag()

Observable.of("🐱", "🐰", "🐶", "🐸", "🐷", "🐵")
    .skip(2)
    .subscribe(onNext: { print($0) })
    .disposed(by: disposeBag)
```

**输出结果：**

```swift
🐶
🐸
🐷
🐵
```
