zouzhenxing
Results
2
issues of
zouzhenxing
当网速比较卡时,如果使用promise,则有可能导至两个模板同时渲染到容器中。解决办法如下:  将leave(hasChildren);方法移到promise方法完成后再调用。
``` if (typeof route.bind === 'function'/* && !route.__isBind*/) { route.bind.call(node); //route.__isBind = true; } ``` 修改成 ``` if (typeof route.bind === 'function'/* && !route.__isBind*/) { route.bind(node); //route.__isBind = true; }...