摘要
随着Web本地数据的日益增多和B/S模式下客户端数据处理的频繁增加,JavaScript的本地数据处理功能也得到拓展和发展。JavaScript File API虽然实现本地数据的可视化,却不能用于实际的计算。因为result数组只是将本地文本数据以单字节的形式保存,在实际过程中result数组并没有实际用途;利用一系列循环迭代算法,在File API基础上进行改进,最终可以实现对本地数据的提取以及预处理,可供以后的实际计算。
With the increasing number of Web local data and the frequent increase of B/S mode, the local data processing function of Java Script has been expanded and developed. File API Java Script to achieve the visualization of the local data, but cannot be used for the actual calcu-lation. Due to the array result only local text data is saved in the form of single byte, in the actual process of array result and no practical use. Uses a series of cyclic iterative algorithm, makes improvement based on File API, and achieves later calculation of local data extraction and pretreatment.
作者
庞聪
龙坤
罗棋
杜瑞林
PANG Cong LONG Kun LUO Qi DU Rui-lin(Institute of Seismology, CEA,Wuhan 430071 School of Economics and Management, Wuhan University, Wuhan 430072)
出处
《现代计算机》
2016年第18期40-42,共3页
Modern Computer