Replies: 1 comment
-
控制器只是入口, 逻辑可以再封装一层, 想单例想new 都行 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
控制器单例可以提高访问性能,不过只提供了单例的解决方案,没有给出明确的非单例解决方案,只能路由的时候匿名函数new一个
11 votes ·
Beta Was this translation helpful? Give feedback.
All reactions