### 1、重置vue中data的數據,不用一個個地重新寫一遍
```javascript
Object.assign(this.$data,?this.$options.data())/*重置vue中的data*/
```
這里?this.$options.data()就是初始化的那個data數據
### 2、數組判空,為null或者undefined的時候為0
```
_.size(this.cellLines) > 2
```
### 3、判空,避免多級判斷,或者為null的情況,導致第三個參數不生效
```
_.get(obj, 'a.b.c') || 0
```