基于Rhino引擎的低侵入式JavaScript内置对象扩展方法  

Extensions of Client-side JavaScript Built-in Objects by Low Invasion Method Based on Rhino Engine

在线阅读下载全文

作  者:聂琨琳 黄蔚[1] 胡国超[1] 

机构地区:[1]华北计算技术研究所信息技术应用系统部,北京100083

出  处:《计算机与现代化》2014年第1期114-120,共7页Computer and Modernization

摘  要:为了获取由JavaScript脚本生成的网页信息,更好地获取网页深层信息,提出基于低侵入式的Rhino解析引擎改进方法。通过对Rhino引擎解析JavaScript脚本过程进行深入研究分析,得出扩展Rhino引擎的关键环节。在此基础上提出低侵入式的设计方法,对Rhino引擎进行低耦合的扩展改进,从而完善Rhino引擎对客户端JavaScript脚本的解析。通过使用低侵入式的扩展方法,将Rhino引擎的扩展和使用完全分离,使开发人员不用了解Rhino引擎的实现细节,简化扩展开发。设计实验验证了Rhino引擎改进效果。In order to obtain the pages of information generated by JavaScript scripts, better access to Web-depth information, A minimally invasion method that can improve Rhino engine is proposed. Through in-depth analysis on the process that Rhino en- gine parses JavaScript script, this paper draws the key to extend Rhino engine. On this basis, low-invasive design is used, Rhino engine is improved by low coupling expansion method, thereby Rhino engine parsing on the client JavaScript script is improved. Through the use of minimally invasive extension method, the expansion and use of Rhino engine are completely separated, the de- velopers of the expansion do not have to understand the implementation details of Rhino engine, simplifying extension develop- ment. Finally, this paper verified the effect of Rhino engine improvements through experiments.

关 键 词:解析 DOM树 Java扩展 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象