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

后端 未结 0 434
北海茫月
北海茫月 2021-02-14 10:28

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         


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