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);
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
闭关修行中......