只会比较 实例成员
class Person {
public name: string;
}
class Animal {
public name: string;
}
let p: Person;
let a: Animal;
p = a;
a = p;
只能将 多 的属性赋值给 少 的,不可将 少 的属性 ...……
How to debug typescript,
In Chrome, we need to press F12, open settings, uncheck the Enable JavaScript source maps
In IE, we can debug directly,
In Firefox, I haven't try.
Good Luck! ……