[问题] MVC 优先级?

楼主: asadman1523 (黑炭)   2014-10-03 13:50:59
开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
visual stdio 2013 C++
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
问题(Question):
喂入的资料(Input):
预期的正确结果(Expected Output):
错误结果(Wrong Output):
程式码(Code):(请善用置底文网页, 记得排版)
补充说明(Supplement):
学校要写一支MVC Pattern的程式
我的想法是,View只负责显示,所以先创一个Presentation model,
在Presentation model里面创一个View,这样有需要显示再去呼叫View
但是同学都是先创一个View,然后再请Presentation model去Model取资料
想请问到底是先创View才对还是创Presentation model才对呢? (以哪个为主?)
作者: GoalBased (Artificail Intelligence)   2014-10-03 14:29:00
都可以..
作者: xpride (陈ㄚ智)   2014-10-03 17:49:00
这种东西看你喜欢,先定出来的接口,后面的就以他为主主要还是在于沟通接口的统一

Links booklink

Contact Us: admin [ a t ] ucptt.com