What is the best way to limit the update event number sent by the model to the viewer

后端 未结 0 1638
一整个雨季
一整个雨季 2021-02-14 10:21

I have some MVC code, it use the observer mode, such as below:

void Model::ChangeMethod1()
{
    m_A = m_A + 1;
    ...
    Notify();
}

void Model::ChangeMethod2         


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