* Swap children at positions * 交换指定位置的子对象
(index1: number, index2: number)
| 325 | * 交换指定位置的子对象 |
| 326 | */ |
| 327 | public swapChildrenAt(index1: number, index2: number): void { |
| 328 | const child1 = this._children[index1]; |
| 329 | const child2 = this._children[index2]; |
| 330 | |
| 331 | this.setChildIndex(child1, index2); |
| 332 | this.setChildIndex(child2, index1); |
| 333 | } |
| 334 | |
| 335 | /** |
| 336 | * Check if contains a child |
no test coverage detected