function fn(str1 : string , num1 : number)
function fn(str1 : string = ‘default‘ , num1 : number = 12)
function fn(s1 : string . s2 : string , arr : string[] )
调用=> fn(‘a‘,‘b‘,‘c‘,‘d‘,‘e‘)
function fn(s1 : string , num1 ?: number )
原文:https://www.cnblogs.com/lhx9527/p/14866478.html