全球重繪我將如何能夠避免全球重繪=呼叫到主視圖函數 而在主模塊視圖方法改變的子模塊的視圖,如:避免對模塊化視圖模型
m("body", [
m("#head", {...}),
Menu.show(this),
Footer.show(this)
])
在靜態展示方法是這樣的:
function show(app)
{
if (inst == null)
inst = new Footer(app);
return inst.view(app);
}
現在應該加大對已經很好的性能,如果沒有一個運行的 觀點方法的子畫面,而不在的情況下運行的主視圖方式在變化的方法子視圖有局部影響。這有意義嗎?
阿克塞爾
'm.redraw.stragegy('diff')'中有一個輸入錯誤。 – 2016-06-28 09:11:00
斑點@StephanHoyer! – Barney 2016-06-28 09:12:04
我複製並粘貼,它沒有工作,但pssst;) – 2016-06-29 09:28:38