一些常用的算法优化

1,避免全局查找。

2,JS中多用innerHtml.

3,循环时将数组长度存为一个变量。

posted @ 2017-09-25 13:18  坐忘青塘  阅读(94)  评论(0)    收藏  举报