定义自定义类的数组

typescript
阅读 54 收藏 0 点赞 0 评论 0

define_array_custom_class.ts
/* Custom Class is Recipe*/

recipes: Recipe[] = [
    new Recipe('A Test Recipe', 'This is a simply a test', 'http://goodtoknow.media.ipcdigital.co.uk/111/00001428f/fe33_orh412w625/Tomato-baked-chicken-recipe.jpg'),
    new Recipe('Milanesa de Pollo', 'La milanesa de pollo es lo mejor', 'https://www.comedera.com/wp-content/uploads/2014/06/milanesa-de-pollo.jpg')
  ];
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号