function fun<T>(str: T): Array<T>{ alert(str); let arr: T[]; arr.push(str); return arr; }fun(1); let two: <T>(arg: T) => T = fun; two(2);
冉冉说
相关分类