1-1. 定义一个泛型函数好处:兼顾了灵活性和类型检查 1-1. 定义一个泛型函数function goTest<T>(s:T):T{ return s}goTest<string>("1000");goTest<number>(100);