Why i can not access uid and other properties when class is placed outside the factory function?

前端 未结 0 1974
栀梦
栀梦 2021-02-05 09:57

if i take class TodoItem item outside the function and instead write return new TodoItem(), i can not access uid and other properties. and i dont know why as the object is being

相关标签:
回答
  • 消灭零回复
提交回复
热议问题