如果你运行报错TypeError: Class constructor Animal cannot be invoked without 'new',可能你跟我一样在extends Animal后面加括号了。。。
+1....
Sign in to make a reply
Gingbery
如果你运行报错TypeError: Class constructor Animal cannot be invoked without 'new',可能你跟我一样在extends Animal后面加括号了。。。