unknow是比any更安全的类型
let value: any;
value = true; //ok
value = 1;//ok
value = “Hello”;//ok
value = Symbol(“type”);//ok
value = {};//ok
value = [];//ok
value.foo.bar;//ok
value();//ok [[call]]
new value();//ok [[structor]]
value(0)[1];//ok
let value: unknow;
value = true; //ok
value = 1;//ok
value = “Hello”;//ok
value = Symbol(“type”);//ok
value = {};//ok
value = [];//ok
value.foo.bar;//error
value();//error
new value();//error
value(0)[1];//ok