【发布时间】:2012-03-20 11:36:37
【问题描述】:
实例化后如何找到对象的该类?
class Cat
constructor: (@name) ->
class Dog
constructor: (@name) ->
cat = new Cat "Kitty"
dog = new Dog "Doggy"
if (cat == Cat) <- I want to do something like this
【问题讨论】:
标签: coffeescript