ts 3.1 要改一下,不然有ts报错
```
function doSomething([n1, n2, ...others]: Array<any>)
```
```
function doSomething([n1, n2, ...others]: Array<any>)
```
2018-11-20
最新回答 / weibo_墨鎏竹韵味无存_033184
经检验 必选参数>可选参数=默认参数示例如下function practice(a: string, c: string = `jojo`, b?: number) { console.log(a); console.log(c); console.log(a.length);}practice("Axiba");<...图片...>
2018-09-14