更新时间:2023-12-01 23:37:52
问题是在MVC架构中,
哪里有条件格式化到
?
The question is in a MVC architecture, where is the conditional formatting to be taken place?
在视图中。它是一个观点元素。它可能会根据模型中的一些其他信息来决定。
In the view. It is toally a view element. It may decide to do so based on some additional information in the model.
示例:Exchange TIME和SALES ...我是其中的一个...
Example: Exchange TIME AND SALES... I ahve one of those...
该模型有一个条目,其中有一个flasgs字段,指示销售是否处于高,低,出价或询价等。
The Model has an entry that has a flasgs field indicating whether the sale was at the high, low, at bid or ask etc.
视图使用此标志字段来决定其他着色。
The view uses this flags field to decide on additional coloring.