CN104714791A - Methods and devices for splitting and reloading Web application - Google Patents
Methods and devices for splitting and reloading Web application Download PDFInfo
- Publication number
- CN104714791A CN104714791A CN201310693284.2A CN201310693284A CN104714791A CN 104714791 A CN104714791 A CN 104714791A CN 201310693284 A CN201310693284 A CN 201310693284A CN 104714791 A CN104714791 A CN 104714791A
- Authority
- CN
- China
- Prior art keywords
- web application
- splitting
- split
- result
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明涉及一种对Web应用进行拆分的方法,包括:对Web应用源代码的某一代码片段进行解释执行的步骤,该步骤包括:为该代码片段建立控制点标签、独立工作空间以及独立缓存;以及生成拆分结果的步骤,该步骤包括:将所得到的控制点标签以及所述独立缓存中所保存的数据作为该代码片段从所述Web应用中拆分所得到的结果;其中,所述控制点标签用于描述解释执行过程中与该代码片段所对应的控制点所要完成的操作;所述独立工作空间用于完成解释执行过程;所述独立缓存用于保存解释执行过程中的中间状态、中间参数、中间结果。
The present invention relates to a method for splitting web applications, comprising: a step of interpreting and executing a certain code segment of the source code of the web application, the step comprising: establishing a control point label, an independent workspace and an independent working space for the code segment Caching; and a step of generating a split result, which step includes: splitting the obtained control point label and the data stored in the independent cache as the result of splitting the code fragment from the Web application; wherein, The control point tag is used to describe the operation to be completed by the control point corresponding to the code fragment during the interpretation and execution process; the independent workspace is used to complete the interpretation and execution process; the independent cache is used to save the Intermediate states, intermediate parameters, intermediate results.
Description
技术领域technical field
本发明涉及网络通信领域,特别涉及一种对Web应用进行拆分与重装的方法与装置。The invention relates to the field of network communication, in particular to a method and device for splitting and reassembling Web applications.
背景技术Background technique
近年来,随着互联网的迅速发展,网络已经逐渐取代广播、报纸、电视,成为人们获取信息最主要的手段。此外,网络在人们日常的学习工作、休闲娱乐中也起到越来越重要的作用。In recent years, with the rapid development of the Internet, the Internet has gradually replaced radio, newspapers, and television as the most important means for people to obtain information. In addition, the network is also playing an increasingly important role in people's daily study, work, leisure and entertainment.
Web应用是一种可以通过Web访问的应用程序。Web应用的一个明显优势是用户只需要有浏览器就可访问应用程序,无需安装其他软件,这给用户带来了极大的方便。A web application is an application program that can be accessed through the web. An obvious advantage of Web applications is that users only need to have a browser to access the application without installing other software, which brings great convenience to users.
一个Web应用由完成特定任务的各种Web组件(web components)构成,并通过Web将服务展示给外界。在实际应用中,Web应用程序由多个Servlet、JSP页面、HTML文件以及图像文件等组成。所有这些组件相互协调为用户提供一组完整的服务。计数器、留言版、登录系统、聊天室、论坛BBS等都是常见的Web应用,随着用户需求的不断提升以及计算机技术的不断发展,Web应用的功能越来越强大,与此同时,其结构也变得越来越复杂。A web application is composed of various web components (web components) that complete specific tasks, and expose services to the outside world through the web. In practical applications, Web applications are composed of multiple Servlets, JSP pages, HTML files, and image files. All these components coordinate with each other to provide users with a complete set of services. Counters, message boards, login systems, chat rooms, forum BBS, etc. are all common web applications. With the continuous improvement of user needs and the continuous development of computer technology, the functions of web applications are becoming more and more powerful. At the same time, its structure It's also getting more complex.
在互联网舆情监控、网络数据检索等领域中都需要采集Web应用中的信息。由于Web应用中包含了大量的信息,用户可能只对其中的某些信息感兴趣,因此需要对Web应用进行分析,从中提取出用户感兴趣的信息。此外,目前的Web应用都由网站开发者创建,Web应用所具有的功能也都由网站开发者设定,但网站开发者所设定的功能未必满足用户的需要。例如,用户希望在同一网络页面上显示当前的天气状况与某地当前的交通流量状况,但这两类信息之前只能从不同的Web应用(如一个关于天气状况的Web应用和一个关于交通流量状况的Web应用)获取。为了满足用户的此类需求,需要对已有的Web应用进行拆解与重装。In the fields of Internet public opinion monitoring and network data retrieval, it is necessary to collect information in Web applications. Because Web applications contain a lot of information, users may only be interested in some of the information, so it is necessary to analyze the Web applications to extract the information that users are interested in. In addition, the current web applications are all created by website developers, and the functions of the web applications are also set by the website developers, but the functions set by the website developers may not meet the needs of users. For example, a user wants to display the current weather conditions and the current traffic flow conditions of a certain place on the same web page, but these two types of information can only be obtained from different web applications (such as a web application about weather conditions and a web application about traffic flow conditions). status web application) to obtain. In order to meet such needs of users, it is necessary to disassemble and reinstall existing web applications.
对Web应用的拆解包括拆分与解析,本申请中所涉及的拆分是指将某一Web应用的代码拆成多个可执行代码片段,本申请中所涉及的解析是指将拆分后所得到的可执行代码片段进行解释、执行。The dismantling of web applications includes splitting and parsing. The splitting involved in this application refers to splitting the code of a certain web application into multiple executable code fragments. The parsing involved in this application refers to splitting The resulting executable code fragments are then interpreted and executed.
现有技术中存在对网络页面进行拆分的方法,如在参考文献1“基于Rhino的JavaScript动态页面解析研究与实现;金晓鸥,钟宝燕,李翔;《计算机技术与发展》第18卷第2期”,在参考文献2“基于Rhino引擎的服务器端JavaScript脚本容器设计与实现”中都涉及到如何拆分网络页面的说明。虽然Web应用包括一个或多个网络页面,但现有技术中对网络页面的拆分方法通常并不能直接适用于Web应用。这是因为Web应用所包含的网页存在大量的用户交互、子页面调用等操作,这就要求在拆分Web应用时必须保证Web应用的过程连贯性与数据完整性,这对本领域技术人员而言是一个严峻的挑战。There are methods of splitting web pages in the prior art, such as in Reference 1 "Research and Implementation of JavaScript Dynamic Page Analysis Based on Rhino; Jin Xiaoou, Zhong Baoyan, Li Xiang; "Computer Technology and Development" Volume 18, Issue 2 ", in reference 2 "Design and Implementation of Server-side JavaScript Script Container Based on Rhino Engine", all involve instructions on how to split web pages. Although a web application includes one or more web pages, the methods for splitting web pages in the prior art are usually not directly applicable to web applications. This is because there are a large number of user interactions, subpage calls and other operations in the web pages contained in the web application, which requires that the process continuity and data integrity of the web application must be guaranteed when the web application is split. is a serious challenge.
现有技术中对Web应用的解析是一个封闭的过程,用户无法对Web应用的解析过程进行干涉,这一方面有利于保证网络访问的安全性,但另一方面也限制了用户对Web应用的深度利用。In the prior art, the parsing of Web applications is a closed process, and users cannot interfere with the parsing process of Web applications. On the one hand, this helps to ensure the security of network access, but on the other hand, it also limits the user's access to Web applications. Deep use.
在对Web应用进行拆解后,某些情况下还需要根据用户的需求从拆解结果中选取部分代码片段重新组装成新的Web应用(如前文中提到的将之前不同网络页面上的天气状况和交通流量状况集成到一个网络页面上显示),这一过程也被称为重装。重装能够根据已有的网络页面生成用户所期望的新的Web应用,在实际应用中有着广泛的前景。After dismantling the web application, in some cases, it is necessary to select some code fragments from the dismantling results according to the user's needs to reassemble into a new web application (such as the previous weather on different web pages mentioned above) conditions and traffic flow conditions integrated into one web page), this process is also known as reloading. Reloading can generate new web applications expected by users according to existing web pages, and has broad prospects in practical applications.
发明内容Contents of the invention
本发明的目的在于克服现有技术中用户无法对Web应用的解析进行干涉,从而提供一种能够对Web应用加以拆分、重装的方法。The purpose of the present invention is to overcome the inability of users to interfere with the parsing of Web applications in the prior art, thereby providing a method capable of splitting and reinstalling Web applications.
为了实现上述目的,本发明提供了一种对Web应用进行拆分的方法,包括:In order to achieve the above object, the present invention provides a method for splitting web applications, including:
对Web应用源代码的某一代码片段进行解释执行的步骤,该步骤包括:为该代码片段建立控制点标签、独立工作空间以及独立缓存;以及A step of interpreting and executing a certain code segment of the web application source code, the step comprising: establishing a control point label, an independent workspace and an independent cache for the code segment; and
生成拆分结果的步骤,该步骤包括:将所得到的控制点标签以及所述独立缓存中所保存的数据作为该代码片段从所述Web应用中拆分所得到的结果;其中,A step of generating a split result, which step includes: taking the obtained control point label and the data stored in the independent cache as the result obtained by splitting the code fragment from the Web application; wherein,
所述控制点标签用于描述解释执行过程中与该代码片段所对应的控制点所要完成的操作;The control point tag is used to describe the operation to be completed by the control point corresponding to the code fragment during the interpretation and execution process;
所述独立工作空间用于完成解释执行过程;The independent workspace is used to complete the interpretation and execution process;
所述独立缓存用于保存解释执行过程中的中间状态、中间参数、中间结果。The independent cache is used to save the intermediate state, intermediate parameters, and intermediate results during the interpretation and execution process.
上述技术方案中,在解释执行步骤之前还包括:获取待拆分Web应用的拆分对象信息的步骤。In the above technical solution, before explaining the execution steps, it further includes: a step of obtaining the split object information of the web application to be split.
上述技术方案中,在获取待拆分Web应用的拆分对象信息的步骤与解释执行步骤之间还包括拆分对象信息匹配步骤:在待解释执行的代码片段中查找是否包含与拆分对象信息对应的代码片段;In the above technical solution, between the step of obtaining the split object information of the web application to be split and the step of interpreting and executing, there is also a step of matching split object information: finding whether the code fragment to be interpreted and executed contains and splits the object information The corresponding code snippet;
所述解释执行步骤对所述与拆分对象信息对应的代码片段进行解释执行。The interpreting and executing step interprets and executes the code segment corresponding to the split object information.
上述技术方案中,所述拆分对象信息用于描述需要从待拆分的Web应用中拆分出哪一部分代码片段,包括诸如代码片段的名称、位置、类型、长度信息中的一种或多种,或其他能够确定某一代码片段的参数。In the above technical solution, the split object information is used to describe which part of the code fragment needs to be split from the Web application to be split, including one or more information such as the name, location, type, and length of the code fragment species, or other parameters that determine a certain code fragment.
上述技术方案中,在对待拆分Web应用进行拆分前还包括:对需要用户做登录认证的待拆分Web应用进行模拟登录认证。In the above technical solution, before splitting the web application to be split, it also includes: performing simulated login authentication on the web application to be split that requires login authentication by the user.
上述技术方案中,所述独立缓存所保存的代码片段在解释执行过程中所产生的中间状态、中间参数、中间结果具有全局性。In the above technical solution, the intermediate states, intermediate parameters, and intermediate results generated during the interpretation and execution of the code fragments stored in the independent cache are global.
本发明还提供了一种对Web应用进行重装的方法,包括:The present invention also provides a method for reinstalling web applications, including:
选取拆分结果的步骤,该步骤包括:选取一个或多个基于所述的对Web应用进行拆分的方法所得到的拆分结果;以及The step of selecting splitting results, which step includes: selecting one or more splitting results obtained based on the method for splitting Web applications; and
重装Web应用步骤,该步骤包括:将待重装的Web应用所需的状态、参数、中间结果与所述拆分结果中的中间状态、中间参数以及中间结果进行对应,得到重装后的Web应用。The step of reinstalling the Web application includes: corresponding the state, parameters, and intermediate results required by the Web application to be reloaded with the intermediate state, intermediate parameters, and intermediate results in the split result, and obtain the reloaded Web applications.
上述技术方案中,在选取拆分结果的步骤之前还包括确定待重装的Web应用的内容、布局的操作。In the above technical solution, before the step of selecting the split result, the operation of determining the content and layout of the Web application to be reinstalled is also included.
上述技术方案中,所述重装Web应用步骤还包括:将选取拆分结果的步骤中所得到的拆分结果返回给为待拆分Web应用所创建的独立缓存,并在为待拆分Web应用所创建的独立工作空间中与所述待拆分Web应用的其他代码片段的解释执行结果一起重新进行组装,所得到的最终结果返回给待拆分Web应用所属的Web应用服务器。In the above technical solution, the step of reinstalling the web application further includes: returning the split result obtained in the step of selecting the split result to the independent cache created for the web application to be split, and The independent workspace created by the application is reassembled together with the interpretation and execution results of other code fragments of the to-be-split Web application, and the obtained final result is returned to the Web application server to which the to-be-split Web application belongs.
上述技术方案中,待重装的Web应用的布局为重新定义的布局。In the above technical solution, the layout of the web application to be reloaded is a redefined layout.
本发明还提供了一种对Web应用进行拆分的装置,包括解释执行模块、生成拆分结果模块;其中,The present invention also provides a device for splitting Web applications, including an interpretation and execution module and a splitting result generation module; wherein,
所述解释执行模块用于对Web应用源代码的某一代码片段进行解释执行,包括:为该代码片段建立控制点标签、独立工作空间以及独立缓存;以及The interpreting and executing module is used to interpret and execute a certain code fragment of the Web application source code, including: establishing a control point label, an independent workspace and an independent cache for the code fragment; and
所述生成拆分结果模块用于将所得到的控制点标签以及所述独立缓存中所保存的数据作为该代码片段从所述Web应用中拆分所得到的结果;其中,The module for generating split results is used to split the obtained control point tags and the data stored in the independent cache as the code fragment from the Web application; wherein,
所述控制点标签用于描述解释执行过程中与该代码片段所对应的控制点所要完成的操作;The control point tag is used to describe the operation to be completed by the control point corresponding to the code fragment during the interpretation and execution process;
所述独立工作空间用于完成解释执行过程;The independent workspace is used to complete the interpretation and execution process;
所述独立缓存用于保存解释执行过程中的中间状态、中间参数、中间结果。The independent cache is used to save the intermediate state, intermediate parameters, and intermediate results during the interpretation and execution process.
本发明又提供了一种对Web应用进行重装的装置,包括选取拆分结果模块和重装Web应用模块;其中,The present invention also provides a device for reinstalling Web applications, including selecting and splitting result modules and reinstalling Web application modules; wherein,
所述选取拆分结果模块从所述的对Web应用进行拆分的装置所得到的拆分结果中选取一个或多个;以及The selecting and splitting result module selects one or more splitting results obtained by the device for splitting Web applications; and
所述重装Web应用模块将待重装的Web应用所需的状态、参数、中间结果与所述拆分结果中的中间状态、中间参数以及中间结果进行对应,得到重装后的Web应用。The reinstalling Web application module corresponds the required state, parameters, and intermediate results of the Web application to be reinstalled with the intermediate state, intermediate parameters, and intermediate results in the split result, to obtain the reinstalled Web application.
另一方面,本发明实施例还提供一种对Web应用进行拆分的程序,该程序包括:On the other hand, the embodiment of the present invention also provides a program for splitting web applications, the program includes:
对Web应用源代码的某一代码片段进行解释执行的指令,该指令包括:为该代码片段建立控制点标签、独立工作空间以及独立缓存;以及An instruction for interpreting and executing a certain code fragment of the source code of the web application, the instruction includes: establishing a control point label, an independent workspace, and an independent cache for the code fragment; and
生成拆分结果的指令,该指令包括:将所得到的控制点标签以及所述独立缓存中所保存的数据作为该代码片段从所述Web应用中拆分所得到的结果;其中,An instruction for generating a split result, the instruction includes: taking the obtained control point tag and the data stored in the independent cache as the result obtained by splitting the code fragment from the Web application; wherein,
所述控制点标签用于描述解释执行过程中与该代码片段所对应的控制点所要完成的操作;The control point tag is used to describe the operation to be completed by the control point corresponding to the code fragment during the interpretation and execution process;
所述独立工作空间用于完成解释执行过程;The independent workspace is used to complete the interpretation and execution process;
所述独立缓存用于保存解释执行过程中的中间状态、中间参数、中间结果。The independent cache is used to save the intermediate state, intermediate parameters, and intermediate results during the interpretation and execution process.
优选地,所述程序还包括:获取待拆分Web应用的拆分对象信息的指令。Preferably, the program further includes: an instruction for acquiring the split object information of the web application to be split.
优选地,所述程序还包括拆分对象信息匹配指令,该指令用于在待解释执行的代码片段中查找是否包含与拆分对象信息对应的代码片段;Preferably, the program further includes a split object information matching instruction, which is used to find whether the code segment corresponding to the split object information is included in the code segment to be interpreted and executed;
在所述解释执行指令中,对所述与拆分对象信息对应的代码片段进行解释执行。In the interpreting and executing instruction, the code segment corresponding to the split object information is interpreted and executed.
优选地,所述获取待拆分Web应用的拆分对象信息的指令所得到的拆分对象信息用于描述需要从待拆分的Web应用中拆分出哪一部分代码片段,包括诸如代码片段的名称、位置、类型、长度信息中的一种或多种,或其他能够确定某一代码片段的参数。Preferably, the split object information obtained by the instruction of acquiring the split object information of the Web application to be split is used to describe which part of the code fragment needs to be split from the Web application to be split, including code fragments such as One or more of name, location, type, length information, or other parameters that can identify a certain code fragment.
优选地,所述程序还包括:对需要用户做登录认证的待拆分Web应用进行模拟登录认证的指令。Preferably, the program further includes: an instruction for performing simulated login authentication on the web application to be split that requires the user to perform login authentication.
优选地,所述独立缓存所保存的代码片段在解释执行过程中所产生的中间状态、中间参数、中间结果具有全局性。Preferably, the intermediate states, intermediate parameters, and intermediate results generated during the interpretation and execution of the code fragments stored in the independent cache are global.
又一方面,本发明实施例还提供一种对Web应用进行重装的程序,该程序包括:In yet another aspect, an embodiment of the present invention also provides a program for reinstalling a Web application, the program comprising:
选取拆分结果的指令,该指令包括:选取一个或多个基于所述的对Web应用进行拆分的程序所得到的拆分结果;以及An instruction for selecting splitting results, the instruction including: selecting one or more splitting results obtained based on the program for splitting Web applications; and
重装Web应用的指令,该指令包括:将待重装的Web应用所需的状态、参数、中间结果与所述拆分结果中的中间状态、中间参数以及中间结果进行对应,得到重装后的Web应用。An instruction for reinstalling a Web application, the instruction includes: corresponding the required state, parameters, and intermediate results of the Web application to be reloaded with the intermediate state, intermediate parameters, and intermediate results in the split result, and obtain the reloaded web application.
优选地,所述程序还包括确定待重装的Web应用的内容、布局的指令。Preferably, the program further includes instructions for determining the content and layout of the Web application to be reloaded.
优选地,所述重装Web应用指令还包括:将选取拆分结果的步骤中所得到的拆分结果返回给为待拆分Web应用所创建的独立缓存,并在为待拆分Web应用所创建的独立工作空间中与所述待拆分Web应用的其他代码片段的解释执行结果一起重新进行组装,所得到的最终结果返回给待拆分Web应用所属的Web应用服务器。Preferably, the instruction of reinstalling the web application further includes: returning the split result obtained in the step of selecting the split result to the independent cache created for the web application to be split, and The created independent workspace is reassembled together with the interpretation and execution results of other code fragments of the to-be-split web application, and the obtained final result is returned to the web application server to which the to-be-split web application belongs.
优选地,待重装的Web应用的布局为重新定义的布局。Preferably, the layout of the web application to be reloaded is a redefined layout.
再一方面,本发明实施例还提供一种计算机可读介质,所述介质用于存储上述对Web应用进行拆分的程序。In yet another aspect, an embodiment of the present invention further provides a computer-readable medium, where the medium is used to store the above-mentioned program for splitting a Web application.
另一方面,本发明实施例还提供一种计算机可读介质,所述介质用于存储上述对Web应用进行重装的程序。On the other hand, an embodiment of the present invention further provides a computer-readable medium, the medium is used for storing the above-mentioned program for reinstalling the Web application.
本发明的优点在于:The advantages of the present invention are:
1、通过本发明的拆分方法能够实现对复杂Web应用的拆分,从而可以根据用户的需求从Web应用中提取出特定的功能的代码片段。通过本发明的拆分方法,能够使拆分后的任意代码片段得到正确执行。1. The complex web application can be split through the split method of the present invention, so that code fragments with specific functions can be extracted from the web application according to user requirements. Through the splitting method of the present invention, any code segment after splitting can be correctly executed.
2、通过本发明的拆分和重装方法,可以将从不同的已有Web应用中拆分出的代码片段进行重新组合,得到新的功能的Web应用,并保证可以具有正确执行结果。2. Through the splitting and reinstalling method of the present invention, code fragments split from different existing web applications can be reassembled to obtain web applications with new functions, and ensure correct execution results.
附图说明Description of drawings
图1是本发明的对Web应用进行拆分的方法的流程图;Fig. 1 is the flow chart of the method for splitting Web application of the present invention;
图2是本发明的对Web应用进行重装的方法的流程图;Fig. 2 is the flow chart of the method for reinstalling Web application of the present invention;
图3是在一个实例中如何对已有的Web应用进行拆分与重装的示意图。Fig. 3 is a schematic diagram of how to split and reinstall an existing web application in an example.
具体实施方式Detailed ways
现结合附图对本发明作进一步的描述。The present invention will be further described now in conjunction with accompanying drawing.
参考图1,本发明的对Web应用进行拆分的方法包括:With reference to Fig. 1, the method for splitting Web application of the present invention comprises:
步骤101)、根据用户的请求从Web应用服务器获取待拆分Web应用的源代码。Step 101), obtaining the source code of the web application to be split from the web application server according to the user's request.
本步骤中,所述待拆分Web应用可以包含一个或多个网络页面。In this step, the web application to be split may include one or more web pages.
步骤102)、获取待拆分Web应用的拆分对象信息。Step 102), obtaining split object information of the web application to be split.
所述待拆分Web应用的拆分对象信息用于描述需要从待拆分的Web应用中拆分出哪一部分代码片段,包括代码片段的名称、位置、类型、长度等信息中的一种或多种,还可以是其他能够确定某一代码片段的参数。其中,所述代码片段的类型至少包括JavaScript片段、HTML片段以及CSS片段等;所述代码片段的位置至少包括:所在网络页面的页数(假设待拆分的Web应用包括多个网络页面)、在某一网络页面中的起始行数或终止行数。在所述拆分对象信息中可包含针对多个代码片段的内容。The split object information of the web application to be split is used to describe which part of the code fragment needs to be split from the web application to be split, including one or more of the information such as the name, location, type, and length of the code fragment. There are many kinds, and it can also be other parameters that can determine a certain code segment. Wherein, the type of the code fragment includes at least a JavaScript fragment, an HTML fragment, and a CSS fragment, etc.; The number of starting or ending lines in a web page. The split object information may include content for multiple code fragments.
所述拆分对象信息可以由用户实时设定,也可预先设定后存储,当需要拆分Web应用时再实时调用。The split object information can be set by the user in real time, or can be preset and stored, and called in real time when the web application needs to be split.
步骤103)、判断步骤101)所得到的待拆分Web应用的源代码是否都已经得到解释执行,若是,结束对待拆分Web应用的拆分操作,否则,从步骤101)所得到的待拆分Web应用的源代码中抽取一段尚未解释执行的代码,然后执行下一步;Step 103), determine whether the source code of the web application to be split obtained in step 101) has been interpreted and executed, if so, end the split operation of the web application to be split, otherwise, the source code of the web application to be split obtained in step 101) Extract a piece of code that has not been interpreted and executed from the source code of the web application, and then execute the next step;
步骤104)、在所抽取的尚未解释执行的代码片段中查找是否包含与步骤102)所得到的拆分对象信息对应的代码片段,若存在,执行下一步,否则重新执行步骤103)。Step 104), check whether the extracted code fragments that have not yet been interpreted and executed contain the code fragments corresponding to the split object information obtained in step 102), if yes, execute the next step, otherwise re-execute step 103).
步骤105)、对所抽取的尚未解释执行的与拆分对象信息对应的代码片段做解释执行。其中,所述的解释执行包括:为待解释执行的代码片段创建控制点标签;为待解释执行的代码片段创建独立工作空间与独立缓存,并在所述的独立缓存中保存代码片段在解释执行过程中所产生的中间状态、中间参数、中间结果。Step 105), interpreting and executing the extracted code fragment corresponding to the split object information that has not been interpreted and executed. Wherein, the interpreted execution includes: creating a control point label for the code fragment to be interpreted and executed; creating an independent workspace and an independent cache for the code fragment to be interpreted and executed, and storing the code fragment in the independent cache during the interpreted execution Intermediate states, intermediate parameters, and intermediate results generated during the process.
所述控制点标签用于描述解释执行过程中与该代码片段所对应的控制点所要完成的操作。例如,在一个实施例中,需要将原Web应用A中的组件B拆分出来,并重装在另一新的Web应用C中。此时,可在控制点标签中写入拦截原Web应用A的控制命令(在这一控制命令的控制下,不再对原Web应用A的整个代码做解释执行),以及指向某一工作目录的命令,所述工作目录中存储了与生成新的Web应用C有关的命令。The control point tag is used to describe the operation to be completed by the control point corresponding to the code fragment during the interpretation and execution process. For example, in one embodiment, component B in the original web application A needs to be split and reinstalled in another new web application C. At this point, the control command to intercept the original web application A can be written in the control point tag (under the control of this control command, the entire code of the original web application A will no longer be interpreted and executed), and point to a certain working directory The commands related to generating the new web application C are stored in the working directory.
在本申请中,一个独立工作空间以及独立缓存对应一个特定的代码片段。在所述的独立工作空间中,通过调用对应的执行器实现对对应代码片段的解释执行。例如,对于JavaScript片段可调用JavaScript引擎来解释执行该片段,对于HTML片段可调用HTML解析器来解释执行该片段,对于CSS片段可调用CSS解析器来解释执行该片段。当然在某些情况下,待解释执行的代码片段包含有不止一种的代码类型,如在一待解释执行的代码片段中同时包含HTML片段与JavaScript片段,由于HTML代码和JavaScript代码之间本身都有标签分隔开,因此在解释执行时很容易区分这些代码并调用对应的执行器。在上述解释执行的过程中,会产生一系列的中间状态、中间参数、中间结果,这些数据都会被保存在与该代码片段对应的独立缓存内。所述独立缓存具有全局性,其中所保存的数据可以为其他对象所访问。In this application, an independent workspace and an independent cache correspond to a specific code segment. In the independent workspace, the interpretation and execution of the corresponding code segment is realized by calling the corresponding executor. For example, a JavaScript engine may be invoked to interpret and execute the fragment for a JavaScript fragment, an HTML parser may be invoked for an HTML fragment to interpret and execute the fragment, and a CSS parser may be invoked for a CSS fragment to interpret and execute the fragment. Of course, in some cases, the code fragment to be interpreted and executed contains more than one type of code, such as a code fragment to be interpreted and executed contains HTML fragments and JavaScript fragments at the same time. There are labels separated, so it is easy to distinguish these codes and call the corresponding executor when interpreting and executing. During the execution of the above explanation, a series of intermediate states, intermediate parameters, and intermediate results will be generated, and these data will be stored in the independent cache corresponding to the code fragment. The independent cache is global, and the stored data can be accessed by other objects.
本领域技术人员都知道,一Web应用中的不同代码片段之间可能存在一定的逻辑结构,如JavaScript片段中对另一函数的调用,一父页面对子页面的调用。所述独立缓存对代码片段解释执行中所生成的中间状态、中间参数、中间结果的存储可以使得不同代码片段间的逻辑关系得到保留,而不必花费大量的资源来关注整个Web应用的逻辑结构。Those skilled in the art know that there may be a certain logical structure between different code fragments in a Web application, such as a call to another function in a JavaScript fragment, or a call from a parent page to a child page. The storage of the intermediate state, intermediate parameters, and intermediate results generated by the independent cache in the interpretation and execution of code fragments can preserve the logical relationship between different code fragments without spending a lot of resources to pay attention to the logical structure of the entire Web application.
步骤106)、将解释执行过程中所得到的控制点标签以及所述独立缓存中所保存的中间状态、中间参数、中间结果作为拆分结果,然后重新执行步骤103)。Step 106), interpreting the control point tags obtained during the execution process and the intermediate state, intermediate parameters, and intermediate results stored in the independent cache as split results, and then re-executing step 103).
以上是对本发明的对Web应用进行拆分的方法在一个实施例中的基本实现步骤的描述。在其他实施例中,本发明的方法还可包括其他步骤。The above is a description of the basic implementation steps of the method for splitting a Web application in an embodiment of the present invention. In other embodiments, the method of the present invention may further include other steps.
在另一个实施例中,所要拆分的某些Web应用需要用户做登录认证,比如对于某一邮件系统,用户需要输入账号和密码才能进入该邮件系统。对于此类Web应用,本发明的方法在进行拆分时,需要在步骤101)之前根据Web应用的登录认证方式进行模拟登录认证。网络页面的登录认证方式一般有两种:form登录认证和ntlm登录认证,如何对这两种登录认证方式进行模拟为本领域技术人员所公知,本申请中不再详细描述。In another embodiment, some web applications to be split require the user to perform login authentication. For example, for a certain mail system, the user needs to input an account number and password to enter the mail system. For this type of web application, when the method of the present invention splits, it is necessary to perform simulated login authentication according to the login authentication method of the web application before step 101). There are generally two login authentication methods for web pages: form login authentication and ntlm login authentication. How to simulate these two login authentication methods is well known to those skilled in the art, and will not be described in detail in this application.
在又一个实施例中,在步骤101)之后还包括下列步骤:为待拆分Web应用创建独立工作空间与独立缓存。所述独立工作空间用于解释执行整个待拆分Web应用或该待拆分Web应用中的代码片段,所述独立缓存用于保存待拆分Web应用中的某一代码片段的中间状态、中间参数、中间结果。在后续的重装方法或其他应用场合中,若完成了对该代码片段的解释执行,所得到对应的中间状态、中间参数、中间结果还可存储在该缓存中,进而可以返回给所述待拆分Web应用所属的服务器。In yet another embodiment, after step 101), the following step is further included: creating an independent workspace and an independent cache for the web application to be split. The independent workspace is used to interpret and execute the entire web application to be split or code fragments in the web application to be split, and the independent cache is used to save the intermediate state and intermediate state of a certain code fragment in the web application to be split. Parameters, intermediate results. In the subsequent reloading method or other application occasions, if the interpretation and execution of the code fragment is completed, the corresponding intermediate state, intermediate parameters, and intermediate results obtained can also be stored in the cache, and then can be returned to the waiting Split the server to which the web application belongs.
在代码片段中查找拆分对象信息的操作在本发明方法中的顺序不限于前述实施例中的描述,在另一个实施例中,可在对代码片段做解释执行后,在代码片段的解释执行结果中查找拆分对象信息,进而得到拆分结果;在这一实施例中,所述拆分对象信息中应描述所需拆分代码片段解释执行后的信息。The order of the operation of searching for the split object information in the code fragment in the method of the present invention is not limited to the description in the foregoing embodiment. In another embodiment, after the code fragment is interpreted and executed, the code fragment can be interpreted and executed Find the split object information in the result, and then obtain the split result; in this embodiment, the split object information should describe the information after the code segment to be split is interpreted and executed.
下文中的JavaScript片段是某一Web应用源代码的一部分(其中每行开头的数字表示该行代码在Web应用中的行数),以这一JavaScript片段为例,对该片段如何提取的过程做示例性说明:The following JavaScript fragment is a part of the source code of a web application (the number at the beginning of each line indicates the number of lines of the line of code in the web application), taking this JavaScript fragment as an example, how to extract the fragment Exemplary instructions:
在一拆分对象信息中,包含有对上述JavaScript片段中的runSum函数进行拆分的内容,如该拆分对象信息中指出待拆分的代码片段的名称为runSum、类型为JavaScript片段。那么在加载代码片段的过程中,当发现某一段代码片段位于<script>和</script>标签之间且该段代码的名称为runSum,就可以为这段代码片段创建控制点标签、分配独立的工作空间和独立的缓存,进而做解释执行,从而达到将这段代码片段从原有的Web应用中拆分出来的目的。所述拆分对象信息中,还可以用其他方式描述待拆分的代码片段,如起始和结束代码的行特征,或起始和结束代码的行相邻特征。例如,对于前述JavaScript片段中的runSum函数,也可以根据起始代码中的文本特征“function runSum(){”以及结束代码中的文本特征“}”来定位并拆分该函数的代码片段。The split object information contains the content of splitting the runSum function in the above JavaScript fragment, for example, the split object information indicates that the name of the code fragment to be split is runSum, and the type is JavaScript fragment. Then in the process of loading code fragments, when a certain code fragment is found between the <script> and </script> tags and the name of the code is runSum, you can create a control point tag for this code fragment and assign an independent Workspace and independent cache, and then perform interpretation and execution, so as to achieve the purpose of splitting this code fragment from the original web application. In the split object information, the code segment to be split may also be described in other ways, such as the line characteristics of the start and end codes, or the line adjacent characteristics of the start and end codes. For example, for the runSum function in the aforementioned JavaScript fragment, the code fragment of the function can also be located and split according to the text feature "function runSum(){" in the start code and the text feature "}" in the end code.
通过上述操作,本发明的方法可以从一个Web应用中拆分出一个或多个代码片段,也可以从不同的Web应用拆分出多个代码片段。所述代码片段可以是某一单一类型的代码片段,如在一个拆分后所得到的代码片段中仅包含一个独立的JavaScript片段,也可以是不同类型的代码片段的组合,如在一个拆分后所得到的代码片段中不仅包含JavaScript片段,也包含HTML片段,还可包含CSS片段。Through the above operations, the method of the present invention can split one or more code fragments from a web application, and can also split multiple code fragments from different web applications. The code fragment may be a single type of code fragment, such as a code fragment obtained after a split containing only an independent JavaScript fragment, or a combination of different types of code fragments, such as a split The resulting code fragments include not only JavaScript fragments, HTML fragments, but also CSS fragments.
本发明的技术方案不仅可将Web应用中的复杂代码片段进行完整、正确的拆分,而且可以将拆分后的代码片段根据需要进行重装,并保证拆分后的代码片段在重装后仍可以正确的执行。对Web应用进行重装的方法在实现时需要前文中对Web应用进行拆分所得到的拆分结果。参考图2,本发明的对Web应用进行重装的方法包括:The technical scheme of the present invention can not only completely and correctly split the complex code fragments in the Web application, but also reinstall the split code fragments as required, and ensure that the split code fragments are can still be executed correctly. The method of reinstalling the web application requires the split result obtained by splitting the web application above. With reference to Fig. 2, the method for reloading Web application of the present invention comprises:
步骤201)、确定待重装的Web应用的内容、布局;Step 201), determining the content and layout of the web application to be reinstalled;
在本步骤中,如何确定待重装的Web应用的内容、布局可通过相应的控制命令来实现。所述控制命令标记语言对待重装的Web应用的页面布局进行描述,通过对控制点标签以及独立缓存中数据的调用确定待重装的Web应用的内容。In this step, how to determine the content and layout of the web application to be reinstalled can be realized through corresponding control commands. The control command markup language describes the page layout of the Web application to be reloaded, and determines the content of the Web application to be reloaded by calling the control point tags and the data in the independent cache.
在本步骤中,待重装的Web应用的布局可以是用户重新定义的布局。In this step, the layout of the web application to be reloaded may be a layout redefined by the user.
步骤202)、根据待重装的Web应用的内容选取相应的代码片段;Step 202), selecting the corresponding code fragment according to the content of the web application to be reinstalled;
步骤203)、加载步骤202)中所选取的代码片段,基于所述的对Web应用进行拆分的方法得到该代码片段所在Web应用的拆分结果,根据该代码片段的控制点标签确定所要完成的操作,从该代码片段所对应的独立缓存中读取对该代码片段解释执行过程中所生成的一系列中间状态、中间参数以及中间结果;Step 203), load the code fragment selected in step 202), obtain the split result of the web application where the code fragment is located based on the method for splitting the web application, and determine what to be completed according to the control point label of the code fragment The operation of reading a series of intermediate states, intermediate parameters and intermediate results generated during the interpretation and execution of the code fragment from the independent cache corresponding to the code fragment;
步骤204)、按照步骤201)中确定的待重装的Web应用的布局,将待重装的Web应用所需的状态、参数、中间结果与步骤202)中所选取的代码片段的中间状态、中间参数以及中间结果进行一一对应,在对应成功后执行下一步;Step 204), according to the layout of the web application to be reinstalled determined in step 201), combine the required state, parameters, and intermediate results of the web application to be reinstalled with the intermediate state of the code fragment selected in step 202), The intermediate parameters and intermediate results are in one-to-one correspondence, and the next step is executed after the correspondence is successful;
步骤205)、将各个代码片段的解释执行结果布置到待重装Web应用中的指定位置,生成重装后的Web应用。Step 205), arranging the interpretation and execution results of each code segment to a specified location in the web application to be reinstalled, and generating a reinstalled web application.
以上是对本发明的对Web应用进行重装的方法在一个实施例中的基本步骤的描述,这些步骤实现了Web应用在客户端的重装。The above is a description of the basic steps of the method for reinstalling a Web application in an embodiment of the present invention, and these steps realize the reinstallation of the Web application on the client side.
在另一个实施例中,还包括用于实现Web应用在Web应用服务器端重装的步骤。该步骤位于步骤203)之后,包括:将所读取的对所选取代码片段解释执行过程中所生成的一系列中间状态、中间参数以及中间结果返回给待拆分Web应用的缓存,在工作空间中与所述待拆分Web应用的其他代码片段的解释执行结果一起重新进行组装,所得到的最终结果返回给待拆分Web应用所属的Web应用服务器。In another embodiment, it also includes the step of realizing the reinstallation of the Web application on the Web application server side. This step is located after step 203), including: returning a series of intermediate states, intermediate parameters, and intermediate results generated during the interpretation and execution of the selected code fragments to the cache of the Web application to be split, in the workspace Reassemble together with the interpretation and execution results of other code fragments of the to-be-split Web application, and return the obtained final result to the Web application server to which the to-be-split Web application belongs.
为了便于理解,对上述Web应用在Web应用服务器端的重装做举例说明。假设在一Web应用10中能够实现三个功能,将这三个功能分别标记为10A、10B、10C。对Web应用10进行拆分,将所述功能10A、功能10B、功能10C所对应的代码片段拆分出来,然后又分别重装到了Web应用20、Web应用30、Web应用40中。此时,用户通过客户端浏览器能够看到分别带有功能10A的Web应用20,带有功能10B的Web应用30和带有功能10C的Web应用40,并可通过这些Web应用实现相应的功能,如功能10A为:通过一计算器实现数据的计算操作并在数据库中保存计算结果。但对于Web应用服务器而言,它只知有Web应用10,不知有Web应用20、Web应用30、Web应用40。为了保持数据同步与执行结果的准确性,需要将在新Web应用20,30,40中实现的功能的结果返回给该功能原先所属Web应用10所在的Web应用服务器,如需要将功能10A在Web应用20,30,40中的执行结果重新返回给Web应用10所属的Web应用服务器。因此需要在Web应用服务器端做前述的重装操作。For ease of understanding, an example is given to illustrate the reinstallation of the above-mentioned web application on the web application server side. Assuming that three functions can be realized in a Web application 10, these three functions are respectively marked as 10A, 10B and 10C. The Web application 10 is disassembled, the code fragments corresponding to the function 10A, the function 10B, and the function 10C are separated, and then reinstalled into the Web application 20 , the Web application 30 , and the Web application 40 respectively. At this time, the user can see the Web application 20 with the function 10A, the Web application 30 with the function 10B, and the Web application 40 with the function 10C respectively through the client browser, and can realize corresponding functions through these Web applications , For example, function 10A is: realize the calculation operation of data through a calculator and save the calculation result in the database. But as far as the web application server is concerned, it only knows that there are web applications 10 , but it does not know that there are web applications 20 , 30 , and 40 . In order to maintain the accuracy of data synchronization and execution results, it is necessary to return the results of the functions implemented in the new Web applications 20, 30, 40 to the Web application server where the original Web application 10 of the function is located. The execution results of the applications 20, 30, 40 are returned to the Web application server to which the Web application 10 belongs. Therefore, the aforementioned reinstallation operation needs to be performed on the web application server side.
以上是本发明的对Web应用进行拆分与重装的方法的执行步骤的描述,为了便于理解,下面结合一具体的实例对这一过程做进一步的说明。The above is a description of the execution steps of the method for splitting and reinstalling a Web application according to the present invention. For ease of understanding, this process will be further described below in conjunction with a specific example.
在图3所示的实例中,已有两个Web应用,分别标记为helloworldA页面与helloworldB页面。其中的helloworldA页面有三行标签,分别表示为A1行、A2行和A3行,这三行标签分别用于执行加法操作;helloworldB页面也有三行标签,分别表示为B1行、B2行和B3行,这三行标签也分别用于执行加法操作。在该实例中,用户要求把helloworldA页面中的A2行与helloworldB页面中的B3行聚合到一新页面helloworldAB上。In the example shown in FIG. 3 , there are two web applications, which are marked as helloworldA page and helloworldB page respectively. Among them, the helloworldA page has three lines of labels, which are respectively represented as A1 line, A2 line and A3 line, and these three lines of labels are respectively used to perform the addition operation; the helloworldB page also has three lines of labels, which are respectively represented as B1 line, B2 line and B3 line, These three rows of labels are also used to perform addition operations, respectively. In this example, the user requests to aggregate the A2 line in the helloworldA page and the B3 line in the helloworldB page to a new page helloworldAB.
为了满足用户的上述要求,首先需要分别对helloworldA页面、helloworldB页面进行拆分。In order to meet the above requirements of the user, firstly, the helloworldA page and the helloworldB page need to be split respectively.
以对helloworldA页面的拆分为例。首先从服务器获取该页面的源代码;然后根据用户的需要从该页面的源代码的Script脚本中提取出名称为ABSum2的函数,该函数的功能是将A2行中的第一个元素的值与第二个元素的值相加,以及从该页面的源代码的HTML片段中提取出A2行标签HTML信息。对helloworldB页面的拆分与之相类似。Take the splitting of the helloworldA page as an example. First obtain the source code of the page from the server; then extract the function named ABSum2 from the Script script of the source code of the page according to the needs of the user, the function of this function is to combine the value of the first element in row A2 with The value of the second element is added, and the A2 line tag HTML information is extracted from the HTML fragment of the page's source code. The splitting of the helloworldB page is similar.
在完成上述拆分操作后,需要重装生成新页面helloworldAB。根据图3已知新页面helloworldAB中所应包含的内容与布局,因此在重装过程中,首先通过调用JavaScript引擎执行所述ABSum2函数,并且解释执行A2行标签HTML信息;然后通过调用JavaScript引擎执行所述ABSumB3函数(该函数为helloworldB页面源代码的Script脚本中用于将B3行中的第一个元素的值与第二个元素的值相加的函数),并且解释执行B3行标签HTML信息,最终可重装生成新页面helloworldAB。After completing the above split operation, you need to reload to generate a new page helloworldAB. According to Figure 3, the content and layout that should be included in the new page helloworldAB are known, so in the reloading process, first execute the ABSum2 function by calling the JavaScript engine, and interpret and execute the HTML information of the A2 line label; then execute it by calling the JavaScript engine The ABSumB3 function (this function is used to add the value of the first element in the B3 line to the value of the second element in the Script script of the helloworldB page source code), and interpret and execute the label HTML information of the B3 line , and finally reload to generate a new page helloworldAB.
从上文中的实例可以看出,本发明的方法可以通过拆分一个或多个原网络页面,然后按照用户意愿把一个或多个原Web应用中的内容重装成用户需要的新Web应用。这有利于对网络已有信息的进一步利用,更好地满足用户的需求。It can be seen from the examples above that the method of the present invention can split one or more original web pages, and then reinstall the content in one or more original web applications into a new web application required by the user according to the user's wishes. This is conducive to the further utilization of existing information on the network and better meet the needs of users.
此外,本发明的方法通过拆分、解析与重装等一系列操作对Web应用的生成过程进行了干涉,与原有的封闭过程相比,通过本发明的方法,用户可以让Web应用的生成过程按照用户期望的路线实现,从而达到用户所期待的结果。In addition, the method of the present invention interferes with the generation process of the Web application through a series of operations such as splitting, parsing, and reinstallation. Compared with the original closed process, through the method of the present invention, the user can make the generation of the Web application The process is realized according to the route expected by the user, so as to achieve the result expected by the user.
最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制。尽管参照实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,对本发明的技术方案进行修改或者等同替换,都不脱离本发明技术方案的精神和范围,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than limit them. Although the present invention has been described in detail with reference to the embodiments, those skilled in the art should understand that modifications or equivalent replacements to the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention, and all of them should be included in the scope of the present invention. within the scope of the claims.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310693284.2A CN104714791B (en) | 2013-12-17 | 2013-12-17 | A kind of method and apparatus that Web applications are split and reset |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310693284.2A CN104714791B (en) | 2013-12-17 | 2013-12-17 | A kind of method and apparatus that Web applications are split and reset |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104714791A true CN104714791A (en) | 2015-06-17 |
| CN104714791B CN104714791B (en) | 2018-05-04 |
Family
ID=53414170
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310693284.2A Active CN104714791B (en) | 2013-12-17 | 2013-12-17 | A kind of method and apparatus that Web applications are split and reset |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104714791B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109343963A (en) * | 2018-10-30 | 2019-02-15 | 杭州数梦工场科技有限公司 | A kind of the application access method, apparatus and relevant device of container cluster |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1337808A (en) * | 2001-09-24 | 2002-02-27 | 北京大学 | Multimedia web site spliting and reconstructing method |
| US20050210053A1 (en) * | 2004-03-18 | 2005-09-22 | International Business Machines Corporation | Method and apparatus for splitting and merging request and response data at runtime |
| US20060056406A1 (en) * | 2004-09-10 | 2006-03-16 | Cavium Networks | Packet queuing, scheduling and ordering |
| CN101546260A (en) * | 2008-03-28 | 2009-09-30 | 国际商业机器公司 | Method and device thereof for reconstructing service-oriented applications |
| US20090292791A1 (en) * | 2008-05-23 | 2009-11-26 | Microsoft Corporation | Automated code splitting and pre-fetching for improving responsiveness of browser-based applications |
| US20110161825A1 (en) * | 2009-12-31 | 2011-06-30 | Tierney Chris | Systems and methods for testing multiple page versions across multiple applications |
| CN102135904A (en) * | 2011-03-11 | 2011-07-27 | 华为技术有限公司 | Multi-core target system oriented mapping method and device |
| CN102253979A (en) * | 2011-06-23 | 2011-11-23 | 天津海量信息技术有限公司 | Vision-based web page extracting method |
-
2013
- 2013-12-17 CN CN201310693284.2A patent/CN104714791B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1337808A (en) * | 2001-09-24 | 2002-02-27 | 北京大学 | Multimedia web site spliting and reconstructing method |
| US20050210053A1 (en) * | 2004-03-18 | 2005-09-22 | International Business Machines Corporation | Method and apparatus for splitting and merging request and response data at runtime |
| US20060056406A1 (en) * | 2004-09-10 | 2006-03-16 | Cavium Networks | Packet queuing, scheduling and ordering |
| CN101546260A (en) * | 2008-03-28 | 2009-09-30 | 国际商业机器公司 | Method and device thereof for reconstructing service-oriented applications |
| US20090292791A1 (en) * | 2008-05-23 | 2009-11-26 | Microsoft Corporation | Automated code splitting and pre-fetching for improving responsiveness of browser-based applications |
| US20110161825A1 (en) * | 2009-12-31 | 2011-06-30 | Tierney Chris | Systems and methods for testing multiple page versions across multiple applications |
| CN102135904A (en) * | 2011-03-11 | 2011-07-27 | 华为技术有限公司 | Multi-core target system oriented mapping method and device |
| CN102253979A (en) * | 2011-06-23 | 2011-11-23 | 天津海量信息技术有限公司 | Vision-based web page extracting method |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109343963A (en) * | 2018-10-30 | 2019-02-15 | 杭州数梦工场科技有限公司 | A kind of the application access method, apparatus and relevant device of container cluster |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104714791B (en) | 2018-05-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12182221B2 (en) | Method and terminal device for extracting web page content | |
| KR102220127B1 (en) | Method and apparatus for customized software development kit (sdk) generation | |
| KR20210091686A (en) | Mini program execution method, mini program execution device, electronic device and storage medium | |
| WO2021017735A1 (en) | Smart contract formal verification method, electronic apparatus and storage medium | |
| WO2021249356A1 (en) | Form data verification method, system, server, and user terminal | |
| CN114253537B (en) | Form generation method and device, electronic device and storage medium | |
| CN105550206B (en) | The edition control method and device of structured query sentence | |
| CN110162457A (en) | Test method, device, equipment and the storage medium of user interface | |
| CN110808868B (en) | Test data acquisition method and device, computer equipment and storage medium | |
| CN104317570B (en) | The apparatus and method of dynamic analysis Web applications | |
| WO2024234614A1 (en) | Information processing method and apparatus, device, computer-readable storage medium and computer program product | |
| TW201409273A (en) | Method and device for responding to webpage access request | |
| CN110798445A (en) | Public gateway interface testing method and device, computer equipment and storage medium | |
| JP2021111403A (en) | Landing page processing methods, equipment, equipment and media | |
| CN115016978A (en) | Data verification method and device, computer storage medium, electronic equipment | |
| WO2022063133A1 (en) | Sensitive information detection method and apparatus, and device and computer-readable storage medium | |
| CN113051514A (en) | Element positioning method and device, electronic equipment and storage medium | |
| CN114064007A (en) | Program statement processing method, apparatus, device and storage medium | |
| CN104270443B (en) | A kind of cloud computing system and method for being capable of dynamic analysis Web applications | |
| PH12015500034B1 (en) | A web browser operation method and system | |
| CN104714791B (en) | A kind of method and apparatus that Web applications are split and reset | |
| CN102142004B (en) | Service processing method and service engine | |
| CN118502735A (en) | Editing assistance method, system and electronic device for code editor | |
| CN117873486A (en) | A method, device, equipment and storage medium for automatic generation of front-end and back-end codes | |
| CN117492752A (en) | Page dynamic configuration method and device, computer equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Methods and devices for splitting and reloading Web application Effective date of registration: 20200701 Granted publication date: 20180504 Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee Pledgor: BEIJING HANDSCAPE TECHNOLOGY Co.,Ltd. Registration number: Y2020980003707 |
|
| PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
| PC01 | Cancellation of the registration of the contract for pledge of patent right |
Granted publication date: 20180504 Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee Pledgor: BEIJING HANDSCAPE TECHNOLOGY Co.,Ltd. Registration number: Y2020980003707 |
|
| PC01 | Cancellation of the registration of the contract for pledge of patent right |