实际开发中推荐第二种,在for里面实现,节省内存,速度较快。
开发小工具:http://tools.jb51.net/code/HtmlJsRun
js for循环性能测试
原文:https://www.cnblogs.com/kangxinzhi/p/13255839.html