摘要
为实现快速而友好的Web用户界面,最好的办法是提高JS代码在浏览器中的执行效率.本文研究了JS流程控制中的分支结构的执行的优化方法.研究表明:通过构造哈夫曼树重新调整判定树分支的顺序可以提高多分支结构的执行效率.
To get a fast and friendly Web user interface, the best way is to improve the efficiency of JS code executes in the browser. In this paper, the JS process control optimization method in the implementation of the branch structure is studied. "By constructing a Huffman tree to relocate decision tree branch of the order can improve the efficient execution of multiple-branch structure.
出处
《邵阳学院学报(自然科学版)》
2011年第4期27-29,共3页
Journal of Shaoyang University:Natural Science Edition
基金
湖南省教育厅一般课题(09C890)