相关文章推荐
豪爽的吐司  ·  Python ...·  1 年前    · 
强悍的大蒜  ·  javascript - JS ...·  1 年前    · 

注意:返回的是类型而不是字符串形式的类名。如果需要字符串形式的类名,可以使用 toString() 方法:

print(p.runtimeType.toString()); // 输出:Person
  •