备注:强制转换的使用 function getLength(x: number | 通达信 DLL数据接口,string): number { return x.to通达信 DLL数据接口,string().length; // return x.length; //错误}//....