CN115687815A - Page information display method, device, equipment and medium - Google Patents

Page information display method, device, equipment and medium Download PDF

Info

Publication number
CN115687815A
CN115687815A CN202110867384.7A CN202110867384A CN115687815A CN 115687815 A CN115687815 A CN 115687815A CN 202110867384 A CN202110867384 A CN 202110867384A CN 115687815 A CN115687815 A CN 115687815A
Authority
CN
China
Prior art keywords
node
target
return value
page
target page
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.)
Pending
Application number
CN202110867384.7A
Other languages
Chinese (zh)
Inventor
苟亚明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110867384.7A priority Critical patent/CN115687815A/en
Publication of CN115687815A publication Critical patent/CN115687815A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for displaying page information, wherein the method comprises the following steps: when a loading request of a target page is received, identifying that the resources of the target page meet a preset condition; analyzing each node in the target page based on a preset rule to obtain a return value corresponding to each node; determining a target node to be modified in the target page according to the return value corresponding to the node, and acquiring a modification strategy corresponding to the target node according to the return value corresponding to the target node; and modifying the target page based on the modification strategy to obtain a modified target page, and displaying the modified target page, thereby effectively modifying the H5 page provided by the third party.

Description

页面信息的展示方法、装置、设备和介质Display method, device, equipment and medium of page information

技术领域technical field

本公开一般涉及计算机技术领域,具体涉及云计算技术领域,尤其涉及一种页面信息的展示方法、装置、设备和介质。The present disclosure generally relates to the field of computer technology, specifically to the field of cloud computing technology, and in particular to a display method, device, device and medium for page information.

背景技术Background technique

H5页面是一种包含HTML5的标记规范,可以实现多种动效和视听夏鸥欧冠、会利用到后端和前端的多种功能,主要在智能移动终端传播且可以跨平台在PC、平板上浏览的移动网页。H5 page is a markup specification including HTML5, which can realize various dynamic effects and audio-visual content, and can use various functions of the back end and front end. It is mainly spread on smart mobile terminals and can be cross-platform on PCs and tablets. Mobile web pages browsed.

相关技术中,如果当前加载的H5页面由第三方提供,则无法对其进行修改,严重影响了原生App的可靠性。In related technologies, if the currently loaded H5 page is provided by a third party, it cannot be modified, which seriously affects the reliability of the native App.

发明内容Contents of the invention

鉴于现有技术中的上述缺陷或不足,期望提供一种页面信息的修改方法、装置、设备和介质,有效实现对第三方提供的H5页面进行修改。In view of the above defects or deficiencies in the prior art, it is desired to provide a method, device, device and medium for modifying page information, so as to effectively modify the H5 page provided by a third party.

第一方面,本申请实施例提供了一种页面信息的展示方法,所述方法包括:In the first aspect, the embodiment of the present application provides a method for displaying page information, the method including:

在接收到目标页面的加载请求时,识别所述目标页面的资源满足预设条件;When receiving the loading request of the target page, identifying that the resource of the target page satisfies a preset condition;

基于预设规则对所述目标页面中的每个节点进行解析,得到每个所述节点对应的返回值;Analyzing each node in the target page based on preset rules to obtain a return value corresponding to each node;

根据所述节点对应的返回值,确定所述目标页面中需要修改的目标节点,并根据所述目标节点对应的返回值,获取所述目标节点对应的修改策略;determining the target node to be modified in the target page according to the return value corresponding to the node, and obtaining a modification policy corresponding to the target node according to the return value corresponding to the target node;

基于所述修改策略对所述目标页面进行修改得到修改后的目标页面,并展示所述修改后的目标页面。Modifying the target page based on the modification strategy to obtain a modified target page, and displaying the modified target page.

第二方面,本申请实施例提供了一种页面信息的展示装置,所述装置包括:In the second aspect, an embodiment of the present application provides a device for displaying page information, the device comprising:

接收模块,用于在接收到目标页面的加载请求时,识别所述目标页面的资源满足预设条件;The receiving module is configured to, when receiving the loading request of the target page, identify that the resource of the target page satisfies a preset condition;

解析模块,用于基于预设规则对所述目标页面中的每个节点进行解析,得到每个所述节点对应的返回值;A parsing module, configured to parse each node in the target page based on preset rules, and obtain a return value corresponding to each node;

确定模块,用于根据所述节点对应的返回值,确定所述目标页面中需要修改的目标节点,并根据所述目标节点对应的返回值,获取所述目标节点对应的修改策略;A determining module, configured to determine a target node to be modified in the target page according to a return value corresponding to the node, and obtain a modification strategy corresponding to the target node according to a return value corresponding to the target node;

加载模块,用于基于所述修改策略对所述目标页面进行修改得到修改后的目标页面,并展示所述修改后的目标页面。A loading module, configured to modify the target page based on the modification strategy to obtain a modified target page, and display the modified target page.

在一些实施例中,接收模块,还用于:In some embodiments, the receiving module is also used for:

提取所述加载请求中的资源定位符;extracting the resource locator in the loading request;

在所述资源定位符与内部资源列表不匹配时,确定所述目标页面满足预设条件。When the resource locator does not match the internal resource list, it is determined that the target page satisfies a preset condition.

在一些实施例中,解析模块,还用于:In some embodiments, the parsing module is also used to:

将所述目标页面中的节点逐个输入至与之对应的模板函数中,所述模板函数用于返回所述节点中具有不利信息的情况;Inputting the nodes in the target page into corresponding template functions one by one, and the template function is used to return the situation that the nodes have unfavorable information;

根据所述节点是否具有不利信息,获取与所述节点对应的返回值。According to whether the node has unfavorable information, the return value corresponding to the node is acquired.

在一些实施例中,解析模块,还用于:In some embodiments, the parsing module is also used to:

获取所述根节点的所述目标属性;obtaining the target attribute of the root node;

根据所述目标属性,获取所述目标页面中与所述根节点类型相同的所有节点,并生成节点数据集;Acquire all nodes of the same type as the root node in the target page according to the target attribute, and generate a node data set;

将所述节点数据集输入至与所述目标属性对应的模板函数中。The node data set is input into a template function corresponding to the target attribute.

在一些实施例中,确定模块,还用于:In some embodiments, the determination module is also used to:

识别所述返回值的类型不为预设类型时,确定所述返回值对应的所述节点为所述目标节点,其中,所述预设类型为值为空的对象类型。When it is identified that the type of the return value is not a preset type, it is determined that the node corresponding to the return value is the target node, wherein the preset type is an object type whose value is empty.

在一些实施例中,确定模块,还用于:In some embodiments, the determination module is also used to:

将所述返回值发送至服务器,所述服务器用于根据所述返回值确定所述目标节点对应的修改策略;Send the return value to a server, and the server is used to determine the modification policy corresponding to the target node according to the return value;

接收所述服务器根据所述返回值确定的修改策略。receiving the modification policy determined by the server according to the return value.

在一些实施例中,基于native接口与所述服务器进行通信,确定模块,还用于:In some embodiments, communicating with the server based on the native interface, the determination module is further used for:

将所述返回值转换至所述native接口对应的数据类型,得到中间返回值;converting the return value to a data type corresponding to the native interface to obtain an intermediate return value;

对所述中间返回值进行函数编码,得到与所述返回值对应的字符串;Perform function encoding on the intermediate return value to obtain a character string corresponding to the return value;

将所述字符串发送至所述服务器,所述服务器用于基于所述字符串确定所述目标节点对应的修改策略。The character string is sent to the server, and the server is configured to determine a modification policy corresponding to the target node based on the character string.

在一些实施例中,所述修改策略包括替换和删除,在所述修改策略为删除时,加载模块,还用于:In some embodiments, the modification strategy includes replacement and deletion, and when the modification strategy is deletion, loading the module is also used for:

获取所述目标节点与前一节点之间的目标距离;Acquiring the target distance between the target node and the previous node;

将所述目标节点的后一节点与所述前一节点之间的距离修改为所述目标距离。modifying the distance between the node subsequent to the target node and the previous node to the target distance.

第三方面,本申请实施例提供了一种电子设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,该处理器执行该程序时实现如本申请实施例描述的方法。In the third aspect, the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, the implementation is as described in the embodiment of the present application Methods.

第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例描述的方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method as described in the embodiment of the present application is implemented.

本申请在接收到目标页面的加载请求且确定目标页面外部页面时,基于预设规则对目标页面中的节点进行解析得到需要修改的目标节点,进而对目标页面中的目标节点进行修改,使得目标页面中存在不利信息时能够仅对不利信息进行修改,保留了目标页面的部分完整性,避免页面整体被屏蔽加载。When the application receives the loading request of the target page and determines the external pages of the target page, it analyzes the nodes in the target page based on preset rules to obtain the target nodes that need to be modified, and then modifies the target nodes in the target page so that the target When there is unfavorable information in the page, only the unfavorable information can be modified, which preserves the partial integrity of the target page and prevents the entire page from being blocked from loading.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1a为本申请实施例的一种应用场景示意图;Figure 1a is a schematic diagram of an application scenario of an embodiment of the present application;

图1b为本申请实施例的另一种应用场景示意图;Figure 1b is a schematic diagram of another application scenario of the embodiment of the present application;

图2为本申请实施例提出的一种页面信息的展示方法的流程图;FIG. 2 is a flow chart of a method for displaying page information proposed in an embodiment of the present application;

图3为本申请实施例提出的另一种页面信息的展示方法的流程图;FIG. 3 is a flow chart of another method for displaying page information proposed by the embodiment of the present application;

图4为本申请实施例提出的又一种页面信息的展示方法的流程图;FIG. 4 is a flow chart of another method for displaying page information proposed by the embodiment of the present application;

图5为本申请实施例提出的再一种页面信息的展示方法的流程图;FIG. 5 is a flow chart of another method for displaying page information proposed by the embodiment of the present application;

图6为本申请实施例提出的又一种页面信息的展示装置的方框示意图;FIG. 6 is a schematic block diagram of another display device for page information proposed by the embodiment of the present application;

图7示出了适于用来实现本申请实施例的电子设备或服务器的计算机系统的结构示意图。FIG. 7 shows a schematic structural diagram of a computer system suitable for implementing an electronic device or a server according to an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for ease of description, only parts related to the invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

随着移动智能移动终端的普及,人们越来越普遍使用智能移动终端进行网页浏览。在用户进行网页浏览时,有时浏览的信息是原生App提供的H5页面,有时是由第三方服务器提供的H5页面。例如,在用户使用微信提供的京东小程序首次打开微信内部的京东购物对应的H5页面后,用户继续点击推荐商品图标,H5页面则跳转到由京东(第三方服务器)提供的H5页面。With the popularization of mobile smart mobile terminals, it is more and more common for people to use smart mobile terminals to browse webpages. When a user browses a web page, sometimes the browsed information is an H5 page provided by a native App, and sometimes an H5 page provided by a third-party server. For example, after the user uses the JD Mini Program provided by WeChat to open the H5 page corresponding to JD Shopping within WeChat for the first time, the user continues to click on the recommended product icon, and the H5 page jumps to the H5 page provided by JD (a third-party server).

由于第三方提供的H5页面中通常会设置有有益于第三方的导流广告,如果正常展示,容易造成原生App(例如微信)的流量损失;而且,我国对网络信息管控越发严格,为了避免某些第三方提供的H5页面中含有违反法律法规的信息,因此,需要对第三方提供的H5页面中的违规数据进行屏蔽或替换。Since the H5 pages provided by third parties usually have diversion advertisements that are beneficial to third parties, if they are displayed normally, it is easy to cause traffic loss for native Apps (such as WeChat); Some H5 pages provided by third parties contain information that violates laws and regulations. Therefore, it is necessary to block or replace the illegal data in the H5 pages provided by third parties.

基于此,本申请提出一种页面信息的展示方法、装置、设备和介质。Based on this, the present application proposes a method, device, device and medium for displaying page information.

图1a和1b为本申请实施例的应用场景示意图。如图1a和1b所示,该应用场景中至少包括终端1、原生App对应的服务器2和第三方服务器3。1a and 1b are schematic diagrams of application scenarios of the embodiments of the present application. As shown in Figures 1a and 1b, the application scenario includes at least a terminal 1, a server 2 corresponding to the native App, and a third-party server 3.

其中,服务器2和第三方服务器3可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。终端1可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表等,但并不局限于此。终端以及服务器可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。Among them, the server 2 and the third-party server 3 can be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage , network services, cloud communications, middleware services, domain name services, security services, CDN, and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. The terminal 1 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be connected directly or indirectly through wired or wireless communication, which is not limited in this application.

用户在使用终端1安装的原生App的客户端打开H5页面时,通常首先打开的是由原生App的服务器提供的H5页面,例如图1b中(a)为由原生App的团队开发的购物页面,用户在浏览该初始H5页面时根据初始H5页面提供的信息,通过不断的点击跳转,跳转到由第三方提供的具体产品的购物页面中,如图1b中(b)所示,此时,购物页面的信息虽然由第三方服务器(购物平台)提供,但是用户仍然在使用原生App的客户端进行页面浏览,未出用户导流的情况,但是,由于图1b中(b)存在例如“打开XXAPP”的跳转控件,若用户在浏览页面时点击该跳转控件,则将会导致用户被导流至第三方提供的应用程序中,从而造成原生App的流量损失。When the user opens the H5 page using the client of the native App installed on terminal 1, usually the H5 page provided by the server of the native App is first opened. For example, (a) in Figure 1b is a shopping page developed by the team of the native App. When the user browses the initial H5 page, according to the information provided by the initial H5 page, he jumps to the shopping page of the specific product provided by the third party through continuous clicking and jumping, as shown in (b) in Figure 1b. At this time , although the information on the shopping page is provided by a third-party server (shopping platform), the user is still using the client of the native app to browse the page, and there is no user diversion. However, due to the presence of such as " Open the jump control of "XXAPP", if the user clicks the jump control when browsing the page, it will cause the user to be diverted to the application program provided by the third party, resulting in the loss of traffic of the native App.

因此,本申请中终端1接收第三方服务器3发送的目标页面(待显示的H5页面),然后,对目标页面中每个节点进行修改需求检测,在识别出需要修改的节点后,将待修改的节点的返回值发送至服务器2,以获取对目标节点的修改策略,并根据修改策略对目标页面进行修改,并在修改后展示修改后的目标页面,例如图1b中(c),使得最终展示的目标页面不存在导流控件,有效避免原生App的用户流量损失。Therefore, in this application, the terminal 1 receives the target page (the H5 page to be displayed) sent by the third-party server 3, and then performs modification demand detection on each node in the target page. After identifying the node that needs to be modified, it will The return value of the node is sent to server 2 to obtain the modification strategy for the target node, and modify the target page according to the modification strategy, and display the modified target page after modification, such as (c) in Figure 1b, so that the final There is no diversion control on the displayed target page, effectively avoiding the loss of user traffic of the native app.

图2为本申请实施例提出的一种页面信息的展示方法的流程图。FIG. 2 is a flowchart of a method for displaying page information proposed by an embodiment of the present application.

其中,需要说明的是,本实施例的页面信息的展示方法的执行主体为页面信息的修改装置,页面信息的修改装置可以由软件和/或硬件的方式实现,该实施例中的页面信息的修改装置配置在安装在终端中的原生App中。Wherein, it should be noted that the execution body of the method for displaying page information in this embodiment is the device for modifying the page information, and the device for modifying the page information can be implemented by software and/or hardware. The page information in this embodiment Modifying the device configuration is in the native App installed in the terminal.

步骤101,在接收到目标页面的加载请求时,识别目标页面的资源满足预设条件。In step 101, when a loading request of a target page is received, it is identified that resources of the target page satisfy a preset condition.

需要说明的是,在本申请实施例中,目标页面为H5页面,终端中安装有原生App的客户端,原生App的客户端在启动时创建H5处理中心H5handle,H5handle用于处理H5页面加载时与服务器(包括服务器和第三方服务器)交互的数据以及处理加载的回调信息。H5handle能够监听H5页面开始加载、加载完成、加载失败、重定向等回调信息。It should be noted that, in the embodiment of this application, the target page is an H5 page, and the client of the native App is installed in the terminal. The client of the native App creates an H5 handle of the H5 processing center when it starts, and the H5 handle is used to process the loading of the H5 page. Data interacted with servers (including servers and third-party servers) and callback information for processing loading. H5handle can monitor H5 page start loading, loading completion, loading failure, redirection and other callback information.

原生App的客户端启动后,服务器向原生App的客户端下发内部连接和模板函数,内部连接存入permit集合中形成内部资源列表,模板函数是一段JavaScript函数脚本,用于利用jscore里面的JSContext生成执行环境,在对目标节点进行修改时,通过JSContext执行模板函数,实现对目标节点的修改。After the client of the native App is started, the server sends the internal connection and template function to the client of the native App, and the internal connection is stored in the permit collection to form an internal resource list. The template function is a JavaScript function script for using the JSContext in jscore The execution environment is generated, and when the target node is modified, the template function is executed through JSContext to realize the modification of the target node.

在加载目标页面过程中,可获取目标页面对应的url(Uniform ResourceLocator,统一资源定位符),url用于标识目标页面的资源位置和访问方法。In the process of loading the target page, a url (Uniform Resource Locator, Uniform Resource Locator) corresponding to the target page may be obtained, and the url is used to identify the resource location and access method of the target page.

在一个或多个实施例中,识别目标页面的资源满足预设条件,包括:提取加载请求中的资源定位符,在资源定位符与内部资源列表不匹配时,确定目标页面满足预设条件。In one or more embodiments, identifying that the resource of the target page satisfies the preset condition includes: extracting the resource locator in the loading request, and determining that the target page satisfies the preset condition when the resource locator does not match the internal resource list.

具体地,在接收到目标页面的加载请求时,将对加载到的目标页面对应的url与服务器下发的内部资源列表进行匹配,如果目标页面对应的url记载的资源位置能够在内部资源列表中匹配到相应信息,则确定目标页面为内部页面,如果目标页面对应的url记载的资源位置不能够在内部资源列表中匹配到相应信息,则确定目标页面满足预设条件。其中,可根据内部资源列表中是否具有与url中同名的资源信息,或者相同的资源路径确定url与内部资源列表是否匹配。Specifically, when a loading request of the target page is received, the url corresponding to the loaded target page will be matched with the internal resource list issued by the server. If the resource location recorded in the url corresponding to the target page can be included in the internal resource list If the corresponding information is matched, it is determined that the target page is an internal page, and if the resource location recorded in the url corresponding to the target page cannot match the corresponding information in the internal resource list, it is determined that the target page meets the preset condition. Wherein, it may be determined whether the url matches the internal resource list according to whether there is resource information with the same name as the url in the internal resource list, or the same resource path.

步骤102,基于预设规则对目标页面中的每个节点进行解析,得到每个节点对应的返回值。Step 102, analyze each node in the target page based on preset rules, and obtain a return value corresponding to each node.

其中,目标页面中被检测的节点为Dom节点,Dom节点为H5页面中元素或元素组对应的信息,其中,元素可为H5页面中的按钮、标签或图片等。应当理解的是,Dom节点由供应商开发提供,即,当目标页面为内部连接时,Dom节点由原生App的供应商开发提供,当目标页面为外部连接时,Dom节点由第三方服务器的供应商开发提供。Dom节点随着开发工具的不断演化升级,节点的类型、属性和内容也随之升级变化。Wherein, the detected node in the target page is a Dom node, and the Dom node is information corresponding to an element or element group in the H5 page, wherein the element can be a button, a label, or a picture in the H5 page. It should be understood that the Dom node is developed and provided by the supplier, that is, when the target page is an internal connection, the Dom node is developed and provided by the supplier of the native App, and when the target page is an external connection, the Dom node is provided by a third-party server provided by the developer. With the continuous evolution and upgrading of development tools, Dom nodes also upgrade and change the type, attributes and content of nodes.

预设规则为开发人员根据最新的Dom节点动态编辑的,一个Dom节点可对应至少一种预设规则,例如,当Dom节点为背景图片时,预设规则可以至少包括对背景图片的颜色审核规则和对背景图片内容的审核规则,对背景图片的颜色审核规则和对背景图片内容的审核规则还可被编写在同一个预设规则体系中。The preset rules are dynamically edited by developers based on the latest Dom nodes. A Dom node can correspond to at least one preset rule. For example, when the Dom node is a background image, the preset rules can at least include the color review rules for the background image. And the review rules for the content of the background picture, the review rules for the color of the background picture and the review rules for the content of the background picture can also be written in the same preset rule system.

返回值是用于表达节点的数据信息,可以是节点对应的数据信息的至少一部分,也可以是根据节点对应的数据信息为了脱敏等目的按照设定的规则返回的指定值。The return value is used to express the data information of the node, which may be at least a part of the data information corresponding to the node, or a specified value returned according to the set rules for desensitization and other purposes according to the data information corresponding to the node.

步骤103,根据节点对应的返回值,确定目标页面中需要修改的目标节点,并根据目标节点对应的返回值,获取目标节点对应的修改策略。Step 103: Determine the target node to be modified in the target page according to the return value corresponding to the node, and obtain the modification policy corresponding to the target node according to the return value corresponding to the target node.

可选的,可根据节点对应的返回值的所属数据类型,来确定目标页面中需要修改的目标节点,其中,返回值的类型包括但不限于空对象类型、值为空的对象类型、字符串类型、数字类型、字典对象类型、二进制对象类型、时间对象类型等。Optionally, the target node that needs to be modified in the target page can be determined according to the data type of the return value corresponding to the node, wherein the return value type includes but is not limited to an empty object type, an empty object type, a string type, number type, dictionary object type, binary object type, time object type, etc.

举例来说,可将属于某种特定类型的返回值对应的节点作为目标节点,例如,可将空对象类型确定对应的节点作为目标节点,也可设定属于某种特定类型的返回值不是目标节点,相应的,属于其他类型的返回值就是目标节点,例如,将除了值为空的对象类型的其他属性类型的节点均确定为目标节点。For example, the node corresponding to the return value belonging to a specific type can be used as the target node, for example, the node corresponding to the empty object type can be determined as the target node, or the return value belonging to a specific type can be set not to be the target node Nodes, correspondingly, return values belonging to other types are target nodes, for example, nodes of other attribute types except object types whose values are empty are all determined as target nodes.

其中,需要说明的是,在本申请实施例中,在节点不包含不利信息时,节点对应的返回值为空,例如无数据返回,在节点包含不利信息时,节点对应的返回值不为空,例如有数据返回,则确定为目标节点。其中,不利信息包括但不限于导流广告、违反法律法规的信息以及异常数据等。Among them, it should be noted that in the embodiment of the present application, when the node does not contain adverse information, the corresponding return value of the node is empty, for example, no data is returned, and when the node contains adverse information, the corresponding return value of the node is not empty , for example, if data is returned, it is determined as the target node. Among them, unfavorable information includes but is not limited to diversion advertisements, information that violates laws and regulations, and abnormal data.

具体而言,识别每个节点的返回值的类型,如果返回值的类型为“值为空”,则确定该节点不是目标节点,如果返回值的类型为除了“值为空”的其他类型,则确定该节点是目标节点。Specifically, identify the type of the return value of each node, if the type of the return value is "the value is empty", then determine that the node is not the target node, if the type of the return value is other than "the value is empty", Then it is determined that the node is the target node.

由于返回值能够表达节点的数据信息,因此,可根据目标节点对应的返回值来进一步确定目标节点的修改策略,其中,修改策略可包括修改和删除,修改可包括部分修改和全部修改。Since the return value can express the data information of the node, the modification strategy of the target node can be further determined according to the corresponding return value of the target node, wherein the modification strategy can include modification and deletion, and the modification can include partial modification and full modification.

举例来说,在节点为广告图片时,返回值可仅包括节点的类型即广告图片,此时修改策略可为将广告图片替换为原始应用程序中的广告图片,从而降低第三方服务器的广告导流,也可仅修改广告图片的色调,例如在特殊纪念日时将广告图片都调整为灰度图片,还可在广告图片存在违规的敏感信息时将广告图片进行删除。For example, when the node is an advertisement picture, the return value may only include the type of the node, that is, the advertisement picture. At this time, the modification strategy may be to replace the advertisement picture with the advertisement picture in the original application program, so as to reduce the advertising load of the third-party server. You can also modify only the color tone of the advertisement picture, for example, adjust the advertisement picture to a grayscale picture on special anniversaries, and delete the advertisement picture when there is sensitive information in violation of the regulations.

步骤104,基于修改策略对目标页面进行修改得到修改后的目标页面,并展示修改后的目标页面。Step 104, modify the target page based on the modification strategy to obtain a modified target page, and display the modified target page.

具体而言,在接收到目标页面的加载请求时,识别到目标页面的资源满足预设条件,基于预设规则对来自外部的目标页面中的每个节点进行解析,得到每个节点对应的返回值,然后根据节点对应的返回值确定出目标页面中需要修改的目标节点以及目标节点的修改策略,并基于修改策略对目标页面进行修改得到修改后的目标页面,展示修改后的目标页面,从而完成对目标页面的调用。Specifically, when receiving the loading request of the target page, it is recognized that the resources of the target page meet the preset conditions, and each node in the target page from the outside is analyzed based on the preset rules, and the corresponding return of each node is obtained value, and then determine the target node that needs to be modified in the target page and the modification strategy of the target node according to the return value corresponding to the node, and modify the target page based on the modification strategy to obtain the modified target page, and display the modified target page, thereby Complete the call to the target page.

由此,本申请在接收到目标页面的加载请求且确定目标页面外部页面时,基于预设规则对目标页面中的节点进行解析得到需要修改的目标节点,进而对目标页面中的目标节点进行修改,使得目标页面中存在不利信息时能够仅对不利信息进行修改,保留了目标页面的部分完整性,避免页面整体被屏蔽加载。Therefore, when the application receives the loading request of the target page and determines the external pages of the target page, it analyzes the nodes in the target page based on preset rules to obtain the target nodes that need to be modified, and then modifies the target nodes in the target page , so that when there is unfavorable information in the target page, only the unfavorable information can be modified, the partial integrity of the target page is preserved, and the entire page is prevented from being blocked from loading.

在一个或多个实施例中,如图3所示,步骤102,基于预设规则对目标页面中的每个节点进行解析,得到每个节点对应的返回值,包括:In one or more embodiments, as shown in FIG. 3 , in step 102, each node in the target page is parsed based on preset rules to obtain a return value corresponding to each node, including:

步骤1021,将目标页面中的节点逐个输入至与之对应的模板函数中,模板函数用于返回节点中具有不利信息的情况。Step 1021, input the nodes in the target page one by one into the corresponding template function, and the template function is used to return the situation that the node has unfavorable information.

步骤1022,根据节点是否具有不利信息,获取与节点对应的返回值。Step 1022, according to whether the node has adverse information, obtain the return value corresponding to the node.

需要说明的是,在原生App启动时,服务器下发的函数模板是一段JavaScript函数脚本,当该函数脚本执行查找功能时能够对Dom节点的数据进行符合模板函数规则的查询。其中,可在对jscor里面的JSContext进行初始化时,调用evaluateScript函数以使模板函数具有查找功能。应当理解的是,用于查找目标节点的模板函数也可为独立设置的模板函数。It should be noted that when the native app is started, the function template issued by the server is a JavaScript function script. When the function script executes the search function, it can query the data of the Dom node in accordance with the template function rules. Among them, when initializing the JSContext in jscor, the evaluateScript function can be called to enable the template function to have a search function. It should be understood that the template function used to find the target node may also be an independently set template function.

具体地,在原生App启动时,接收服务器下发的模板函数,并配置模板函数的查找功能,在接收到目标页面的加载请求且目标页面满足预设条件时,将目标页面中的每个Dom节点数据分别输入至模板函数中,以使模板函数根据节点中是否具有不利信息,来反馈与该节点对应的返回值。Specifically, when the native App starts, it receives the template function issued by the server, and configures the search function of the template function. When the loading request of the target page is received and the target page meets the preset conditions, each Dom in the target page The node data is respectively input into the template function, so that the template function can feed back the return value corresponding to the node according to whether there is adverse information in the node.

举例来说,将目标页面中的节点逐个输入至与之对应的模板函数中,模板函数对每个节点进行查询,当该节点中不包含不利信息时,模板函数返回“值为空”的对象标记,当节点中包含不利信息时,模板函数返回该节点对应的数据信息。其中,该节点对应的数据信息可包括但不限于该节点的坐标位置、内容、不利信息的内容、不利信息的属性中的一种或多种。For example, input the nodes in the target page into the corresponding template function one by one, and the template function queries each node. When the node does not contain adverse information, the template function returns an object with "null value" mark, when the node contains unfavorable information, the template function returns the data information corresponding to the node. Wherein, the data information corresponding to the node may include but not limited to one or more of the node's coordinate position, content, content of unfavorable information, and attribute of unfavorable information.

在一个或多个实施例中,目标页面中包含根节点,对应关系为目标属性,将目标页面中的节点逐个输入至与之对应的模板函数中,包括:获取根节点的目标属性;根据目标属性,获取目标页面中与根节点类型相同的所有节点,并生成节点数据集;将节点数据集输入至与目标属性对应的模板函数中。In one or more embodiments, the target page contains the root node, and the corresponding relationship is the target attribute, and inputting the nodes in the target page into the corresponding template function one by one includes: obtaining the target attribute of the root node; attribute, to obtain all nodes of the same type as the root node in the target page, and generate a node dataset; input the node dataset into the template function corresponding to the target attribute.

其中,目标属性根据节点的类型确定。Among them, the target attribute is determined according to the type of the node.

也就是说,可将目标页面中的节点根据属性进行分类,然后针对相同属性的节点一次性的进行返回值的查询,从而有效提高返回值查询的效率,提高目标页面加载的整体速度。That is to say, the nodes in the target page can be classified according to the attributes, and then the return value query can be performed for the nodes with the same attribute at one time, so as to effectively improve the efficiency of the return value query and improve the overall speed of the target page loading.

具体而言,可从目标页面中确定多个根节点,然后针对每个根节点,获取根节点的目标属性,利用相应的调用函数将目标页面中属于该属性的所有节点组合成节点数据集,最后将节点数据集输入至于目标属性对应的模板函数中,以使模板函数的查找功能对节点数据集中的每个节点进行处理,得到整个节点数据集对应的目标数据,并将目标数据作为整个节点数据集对应的返回值。Specifically, multiple root nodes can be determined from the target page, and then for each root node, the target attribute of the root node is obtained, and all nodes belonging to the attribute in the target page are combined into a node data set by using the corresponding call function, Finally, input the node data set into the template function corresponding to the target attribute, so that the search function of the template function can process each node in the node data set, obtain the target data corresponding to the entire node data set, and use the target data as the entire node The return value corresponding to the dataset.

举例来说,模板函数对整个节点数据集进行查询时,不存在不利信息的节点的返回“值为空”的对象标记,存在不利信息的节点的返回值不为空,可为该节点对应的数据信息,以便于后期根据返回值确定节点数据集中需要替换的目标节点。For example, when the template function queries the entire node data set, the node that does not have unfavorable information returns an object mark of "null value", and the return value of a node with unfavorable information is not empty, which can be the corresponding Data information, so that the target node that needs to be replaced in the node data set can be determined later based on the return value.

可选的,针对多个根节点可以依次完成查询,即,当完成对针对一个目标属性的所有节点的查询之后,再执行对下一个目标属性的所有节点的查询。Optionally, the query for multiple root nodes may be completed sequentially, that is, after the query for all nodes of a target attribute is completed, the query for all nodes of the next target attribute is executed.

作为一个具体实施例,As a specific example,

Figure BDA0003185207160000101
Figure BDA0003185207160000101

具体表示为,获取在class属性名称为“preview-content”的元素,并以“。”分割数据得到数组,如果获取到的数组中第一个元素不为空,则将数组中的第一个元素作为返回值进行返回。也就是说,经过分割操作能够将class属性名称为“preview-content”的所有节点中包含不利信息的节点的数据信息被分割形成数组中的第一个元素。Specifically, get the element named "preview-content" in the class attribute, and split the data with "." to get an array. If the first element in the obtained array is not empty, the first element in the array will be The element is returned as the return value. That is to say, the data information of nodes containing unfavorable information among all nodes whose class attribute name is "preview-content" can be divided into the first element in the array after the division operation.

作为一个可行实施例,如图4所示,步骤103,根据目标节点对应的返回值,获取目标节点对应的修改策略,包括:As a feasible embodiment, as shown in FIG. 4, step 103, according to the return value corresponding to the target node, obtains the modification policy corresponding to the target node, including:

步骤1031,将返回值发送至服务器,服务器用于根据返回值确定目标节点对应的修改策略。Step 1031, send the return value to the server, and the server is used to determine the modification policy corresponding to the target node according to the return value.

步骤1032,接收服务器根据返回值确定的修改策略。Step 1032, receiving the modification policy determined by the server according to the return value.

也就是说,原生App客户端在完成对目标页面的节点检测后,需要将需要修改的目标节点的返回值发送至服务器,以由服务器来确定每个目标节点的修改策略,由此,能够有效降低原生App客户端的数据处理量,而且,基于服务器的运算能力,能够有效丰富对目标节点修改的策略,无需原生App客户端存储大量的修改策略,确保对目标节点修改的时效性。That is to say, after the native App client completes the node detection of the target page, it needs to send the return value of the target node to be modified to the server, so that the server can determine the modification strategy of each target node. Reduce the data processing capacity of the native App client, and, based on the computing power of the server, can effectively enrich the strategy for modifying the target node, without the need for the native App client to store a large number of modification strategies, ensuring the timeliness of modifying the target node.

具体而言,在利用模板函数获取到Dom节点对应的返回值后,降返回值不为空的返回值发送至服务器,服务器根据返回值记载的信息,基于存储的预设规则,获取返回值对应的修改策略,并将修改策略返回至客户端。其中,当修改策略为删除时,服务器仅返回删除的修改指示,当修改策略为替换时,服务器则返回替换的修改指示以及替换后的节点数据信息,以便于客户端根据接收到的替换后的节点数据信息在加载目标页面时进行节点替换。Specifically, after using the template function to obtain the return value corresponding to the Dom node, the return value whose return value is not empty is sent to the server, and the server obtains the corresponding return value based on the information recorded in the return value and based on the stored preset rules. , and returns the modified policy to the client. Among them, when the modification strategy is delete, the server only returns the modification instruction of deletion, and when the modification strategy is replacement, the server returns the modification instruction of replacement and the replaced node data information, so that the client can Node data information performs node replacement when loading the target page.

在一个或多个实施例中,基于native接口与服务器进行通信,在将返回值发送至服务器之前,还包括:将返回值转换至native接口对应的数据类型,得到中间返回值;对中间返回值进行函数编码,得到与返回值对应的字符串;将字符串发送至服务器,服务器用于基于字符串确定目标节点对应的修改策略。In one or more embodiments, communicating with the server based on the native interface, before sending the return value to the server, further includes: converting the return value to a data type corresponding to the native interface to obtain an intermediate return value; for the intermediate return value Perform function coding to obtain the string corresponding to the return value; send the string to the server, and the server is used to determine the modification strategy corresponding to the target node based on the string.

其中,JavaScript数据类型和Native接口数据类型对应关系如下Among them, the corresponding relationship between the JavaScript data type and the Native interface data type is as follows

Figure BDA0003185207160000111
Figure BDA0003185207160000111

Figure BDA0003185207160000121
Figure BDA0003185207160000121

也就是说,可以根据返回值在JavaScript语言下的数据类型和JavaScript数据类型与Native数据类型的映射关系直接,将返回值转换至native接口对应的数据,得到中间返回值。That is to say, according to the data type of the return value in the JavaScript language and the mapping relationship between the JavaScript data type and the Native data type, the return value can be directly converted to the data corresponding to the native interface to obtain an intermediate return value.

可选的,当返回值未定义JavaScript数据类型时,例如,直接将目标节点自身的数据内容进行返回时,还需要对返回的数据进行分类。具体地,可对数据添加方法或分类,如果数据与添加的方法或分类提供的类型吻合,则确定数据为该类型,如果不吻合,则再次添加其他方法或分类的类型,直至确定数据所属的类型。应当理解的是,在添加方法或分类时,为了节约数据处理量,可以直接对数据添加Native数据类型。Optionally, when the return value does not define a JavaScript data type, for example, when directly returning the data content of the target node itself, the returned data also needs to be classified. Specifically, a method or classification can be added to the data. If the data matches the type provided by the added method or classification, it is determined that the data is of this type. If not, another method or classification type is added again until the data belongs to type. It should be understood that, when adding a method or classification, in order to save the amount of data processing, the Native data type can be directly added to the data.

进一步地,在将返回值转换成native接口对应的数据类型之后,还进一步对中间返回值进行函数编码,以提高返回值被发送至服务器的安全性。具体地,可将返回值利用f(x)函数转换成32位字符串,然后将字符串发送至服务器,服务器通过对字符串进行解码,得到能够表达目标节点的数据信息的返回值,并根据返回值确定目标节点对应的修改策略。Further, after the return value is converted into a data type corresponding to the native interface, the intermediate return value is further subjected to function encoding, so as to improve the security of the return value being sent to the server. Specifically, the return value can be converted into a 32-bit character string using the f(x) function, and then the character string is sent to the server. The server decodes the character string to obtain a return value that can express the data information of the target node, and according to The return value determines the modification policy corresponding to the target node.

由此,本申请利用native接口将编码后的字符串发送至服务器,有效确保了返回值发送的安全性和可靠性。Therefore, this application uses the native interface to send the encoded character string to the server, effectively ensuring the security and reliability of sending the return value.

在一个或多个实施例中,修改策略包括替换和删除,在修改策略为删除时,基于修改策略对目标页面进行修改得到修改后的目标页面,包括:获取目标节点与前一节点之间的目标距离,将目标节点的后一节点与前一节点之间的距离修改为目标距离。In one or more embodiments, the modification strategy includes replacement and deletion. When the modification strategy is deletion, modifying the target page based on the modification strategy to obtain a modified target page includes: obtaining the link between the target node and the previous node Target distance, modify the distance between the next node and the previous node of the target node to the target distance.

也就是说,在需要将目标节点删除时,实际上是将该节点前后两个节点之间的距离缩小,例如,当节点序列A、B、C中,A与B之间的距离为a,B与C之间的距离为b,A与C之间的距离为a+b,那么,当B为目标节点且对应的修改策略为删除时,将A与C之间的距离修改为a即可。That is to say, when the target node needs to be deleted, the distance between the two nodes before and after the node is actually reduced. For example, when the node sequence A, B, C, the distance between A and B is a, The distance between B and C is b, and the distance between A and C is a+b. Then, when B is the target node and the corresponding modification strategy is deletion, modify the distance between A and C to a, that is Can.

应当理解的是,在目标节点对应修改策略为修改时,则接收服务器返回用于替换目标节点的数据信息,在对目标页面进行渲染时,直接执行替换后的数据信息即可。It should be understood that, when the modification policy corresponding to the target node is modification, the receiving server returns data information for replacing the target node, and when rendering the target page, the replaced data information can be directly executed.

作为一个具体实施例,如图5所示,本实施例的页面信息的展示方法,包括如下步骤:As a specific embodiment, as shown in Figure 5, the method for displaying page information in this embodiment includes the following steps:

步骤201,启动原生App的客户端。Step 201, start the client of the native App.

步骤202,初始化H5handle。Step 202, initialize H5handle.

步骤203,接收并保存由服务器发送的内部链接和模板函数。Step 203, receiving and saving the internal link and template function sent by the server.

步骤204,接收目标页面。Step 204, receiving the target page.

其中,目标页面为H5页面,目标页面是由加载、刷新、重定向和跳转等触发操作获取到的。Wherein, the target page is an H5 page, and the target page is obtained by triggering operations such as loading, refreshing, redirecting, and jumping.

步骤205,判断目标页面的url是否与内部链接匹配。Step 205, judging whether the url of the target page matches the internal link.

如果匹配,则加载H5页面;如果不匹配,则执行步骤206。If it matches, load the H5 page; if not, go to step 206.

步骤206,初始化JSContext对象,向模板函数传入查找功能。Step 206, initialize the JSContext object, and pass the search function to the template function.

步骤207,利用模板函数遍历目标页面中的Dom节点。Step 207, using the template function to traverse the Dom nodes in the target page.

步骤208,得到执行模板函数的返回值。Step 208, obtain the return value of executing the template function.

步骤209,判断返回值是否为空。Step 209, judging whether the return value is empty.

如果是,则加载H5页面;如果否,则执行步骤210。If yes, load the H5 page; if no, execute step 210 .

步骤210,将返回值发送至服务器。Step 210, send the returned value to the server.

步骤211,接收服务器返回的修改策略。Step 211, receiving the modification policy returned by the server.

步骤212,加载H5页面。Step 212, load the H5 page.

综上所述,本申请在接收到目标页面的加载请求且确定目标页面外部页面时,基于预设规则对目标页面中的节点进行解析得到需要修改的目标节点,进而对目标页面中的目标节点进行修改,使得目标页面中存在不利信息时能够仅对不利信息进行修改,保留了目标页面的部分完整性,避免页面整体被屏蔽加载。To sum up, when the application receives the loading request of the target page and determines the external pages of the target page, it analyzes the nodes in the target page based on the preset rules to obtain the target nodes that need to be modified, and then analyzes the target nodes in the target page Make modifications so that only the unfavorable information can be modified when there is unfavorable information in the target page, retaining part of the integrity of the target page, and preventing the entire page from being blocked from loading.

应当注意,尽管在附图中以特定顺序描述了本发明方法的操作,但是,这并非要求或者暗示必须按照该特定顺序来执行这些操作,或是必须执行全部所示的操作才能实现期望的结果。It should be noted that, although operations of the methods of the present invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in that particular order, or that all illustrated operations must be performed to achieve the desired results. .

图6为本申请实施例提出的又一种页面信息的展示装置的方框示意图.如图6所示,页面信息的展示装置10,包括:Fig. 6 is a schematic block diagram of another display device for page information proposed by the embodiment of the present application. As shown in Fig. 6, the display device 10 for page information includes:

接收模块11,用于在接收到目标页面的加载请求时,识别目标页面的资源满足预设条件;The receiving module 11 is configured to, when receiving the loading request of the target page, identify that the resource of the target page satisfies a preset condition;

解析模块12,用于基于预设规则对目标页面中的每个节点进行解析,得到每个节点对应的返回值;The analysis module 12 is configured to analyze each node in the target page based on preset rules, and obtain a return value corresponding to each node;

确定模块13,用于根据节点对应的返回值,确定目标页面中需要修改的目标节点,并根据目标节点对应的返回值,获取目标节点对应的修改策略;The determination module 13 is used to determine the target node to be modified in the target page according to the return value corresponding to the node, and obtain the modification strategy corresponding to the target node according to the return value corresponding to the target node;

加载模块14,用于基于修改策略对目标页面进行修改得到修改后的目标页面,并展示修改后的目标页面。The loading module 14 is configured to modify the target page based on the modification policy to obtain a modified target page, and display the modified target page.

在一些实施例中,接收模块11,还用于:In some embodiments, the receiving module 11 is also used for:

提取加载请求中的资源定位符;extract the resource locator in the load request;

在资源定位符与内部资源列表不匹配时,确定目标页面满足预设条件。When the resource locator does not match the internal resource list, it is determined that the target page satisfies a preset condition.

在一些实施例中,解析模块12,还用于:In some embodiments, the parsing module 12 is also used to:

将目标页面中的节点逐个输入至与之对应的模板函数中,模板函数用于返回节点中具有不利信息的情况;Input the nodes in the target page into the corresponding template function one by one, and the template function is used to return the node with unfavorable information;

根据节点是否具有不利信息,获取与节点对应的返回值。Obtain the return value corresponding to the node according to whether the node has adverse information.

在一些实施例中,解析模块12,还用于:In some embodiments, the parsing module 12 is also used to:

获取根节点的目标属性;Get the target attribute of the root node;

根据目标属性,获取目标页面中与根节点类型相同的所有节点,并生成节点数据集;According to the target attribute, get all nodes of the same type as the root node in the target page, and generate a node data set;

将节点数据集输入至与目标属性对应的模板函数中。Input the node dataset into the template function corresponding to the target property.

在一些实施例中,确定模块13,还用于:In some embodiments, the determination module 13 is also used to:

识别返回值的类型不为预设类型时,确定返回值对应的节点为目标节点,其中,预设类型为值为空的对象类型。When it is identified that the type of the return value is not the preset type, it is determined that the node corresponding to the return value is the target node, wherein the preset type is an object type whose value is empty.

在一些实施例中,确定模块13,还用于:In some embodiments, the determination module 13 is also used to:

将返回值发送至服务器,服务器用于根据返回值确定目标节点对应的修改策略;Send the return value to the server, and the server is used to determine the modification strategy corresponding to the target node according to the return value;

接收服务器根据返回值确定的修改策略。The modification policy determined by the receiving server according to the return value.

在一些实施例中,基于native接口与服务器进行通信,确定模块13,还用于:In some embodiments, communicating with the server based on the native interface, the determining module 13 is also used for:

将返回值转换至native接口对应的数据类型,得到中间返回值;Convert the return value to the data type corresponding to the native interface to obtain an intermediate return value;

对中间返回值进行函数编码,得到与返回值对应的字符串;Perform function encoding on the intermediate return value to obtain the string corresponding to the return value;

将字符串发送至服务器,服务器用于基于字符串确定目标节点对应的修改策略。The string is sent to the server, and the server is used to determine the modification policy corresponding to the target node based on the string.

在一些实施例中,修改策略包括替换和删除,在修改策略为删除时,加载模块14,还用于:In some embodiments, the modification strategy includes replacement and deletion. When the modification strategy is deletion, the loading module 14 is also used for:

获取目标节点与前一节点之间的目标距离;Obtain the target distance between the target node and the previous node;

将目标节点的后一节点与前一节点之间的距离修改为目标距离。Modify the distance between the next node and the previous node of the target node to the target distance.

综上所述,本申请在接收到目标页面的加载请求且确定目标页面外部页面时,基于预设规则对目标页面中的节点进行解析得到需要修改的目标节点,进而对目标页面中的目标节点进行修改,使得目标页面中存在不利信息时能够仅对不利信息进行修改,保留了目标页面的部分完整性,避免页面整体被屏蔽加载。To sum up, when the application receives the loading request of the target page and determines the external pages of the target page, it analyzes the nodes in the target page based on the preset rules to obtain the target nodes that need to be modified, and then analyzes the target nodes in the target page Make modifications so that only the unfavorable information can be modified when there is unfavorable information in the target page, retaining part of the integrity of the target page, and preventing the entire page from being blocked from loading.

应当理解,页面信息的修改装置10中记载的诸单元或模块与参考图2描述的方法中的各个步骤相对应。由此,上文针对方法描述的操作和特征同样适用于页面信息的修改装置10及其中包含的单元,在此不再赘述。页面信息的修改装置10可以预先实现在电子设备的浏览器或其他安全应用中,也可以通过下载等方式而加载到电子设备的浏览器或其安全应用中。页面信息的修改装置10中的相应单元可以与电子设备中的单元相互配合以实现本申请实施例的方案。It should be understood that the units or modules recorded in the apparatus 10 for modifying page information correspond to the steps in the method described with reference to FIG. 2 . Therefore, the operations and features described above for the method are also applicable to the apparatus 10 for modifying page information and the units contained therein, and will not be repeated here. The apparatus 10 for modifying page information may be pre-implemented in the browser of the electronic device or other security applications, and may also be loaded into the browser of the electronic device or its security applications by downloading or other means. Corresponding units in the apparatus 10 for modifying page information may cooperate with units in the electronic device to implement the solution of the embodiment of the present application.

在上文详细描述中提及的若干模块或者单元,这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。Among the several modules or units mentioned in the detailed description above, this division is not mandatory. Actually, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided to be embodied by a plurality of modules or units.

需要说明的是,本申请实施例的页面信息的修改装置中未披露的细节,请参照本申请上述实施例中所披露的细节,这里不再赘述。It should be noted that, for details not disclosed in the apparatus for modifying page information in the embodiment of the present application, please refer to the details disclosed in the above embodiments of the present application, and details are not repeated here.

下面参考图7,图7示出了适于用来实现本申请实施例的电子设备或服务器的计算机系统的结构示意图,Referring to FIG. 7 below, FIG. 7 shows a schematic structural diagram of a computer system suitable for implementing an electronic device or a server according to an embodiment of the present application.

如图7所示,计算机系统包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM703中,还存储有系统的操作指令所需的各种程序和数据。CPU701、ROM702以及RAM703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7 , the computer system includes a central processing unit (CPU) 701 that can operate according to a program stored in a read only memory (ROM) 702 or a program loaded from a storage section 708 into a random access memory (RAM) 703 Various appropriate actions and processes are performed. In RAM 703, various programs and data necessary for system operation commands are also stored. The CPU 701 , ROM 702 , and RAM 703 are connected to each other via a bus 704 . An input/output (I/O) interface 705 is also connected to the bus 704 .

以下部件连接至I/O接口705;包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。The following components are connected to the I/O interface 705; an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 708 including a hard disk, etc. and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc. is mounted on the drive 710 as necessary so that a computer program read therefrom is installed into the storage section 708 as necessary.

特别地,根据本申请的实施例,上文参考流程图图2描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本申请的系统中限定的上述功能。In particular, according to an embodiment of the present application, the process described above with reference to the flow chart FIG. 2 may be implemented as a computer software program. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program comprises program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 709 and/or installed from removable media 711 . When this computer program is executed by a central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present application are performed.

需要说明的是,本申请所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以为的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program codes are carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作指令。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,前述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以不同于附图中所标注的顺序发生。例如,两个连接表示的方框实际上可以基本并行地执行,他们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作指令的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functions and operation instructions of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two linked blocks may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operational instructions implemented, or may be implemented by a combination of special purpose hardware and computer instructions.

描述于本申请实施例中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,例如,可以描述为:一种处理器包括接收模块、解析模块、确定模块和加载模块。其中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定,例如,接收模块,还可以被描述为“在接收到目标页面的加载请求时,识别所述目标页面的资源满足预设条件”。The units or modules involved in the embodiments described in the present application may be implemented by means of software or by means of hardware. The described units or modules may also be set in a processor, for example, it may be described as: a processor includes a receiving module, an analyzing module, a determining module and a loading module. Wherein, the names of these units or modules do not constitute a limitation on the unit or module itself under certain circumstances, for example, the receiving module can also be described as "when receiving a loading request of the target page, identify the target The resources of the page meet the preset conditions".

作为另一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的,也可以是单独存在,而未装配入该电子设备中的。上述计算机可读存储介质存储有一个或多个程序,当上述程序被一个或者一个以上的处理器用来执行描述于本申请的页面信息的展示方法。As another aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments, or may exist independently without being assembled into the electronic device. in electronic equipment. The above-mentioned computer-readable storage medium stores one or more programs, and when the above-mentioned programs are used by one or more processors to execute the method for displaying page information described in this application.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离前述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其他技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principle. Those skilled in the art should understand that the scope of disclosure involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the technical solutions formed by the above-mentioned technical features or without departing from the above-mentioned disclosed concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) this application.

Claims (15)

1.一种页面信息的展示方法,其特征在于,所述方法包括:1. A display method for page information, characterized in that the method comprises: 在接收到目标页面的加载请求时,识别所述目标页面的资源满足预设条件;When receiving the loading request of the target page, identifying that the resource of the target page satisfies a preset condition; 基于预设规则对所述目标页面中的每个节点进行解析,得到每个所述节点对应的返回值;Analyzing each node in the target page based on preset rules to obtain a return value corresponding to each node; 根据所述节点对应的返回值,确定所述目标页面中需要修改的目标节点,并根据所述目标节点对应的返回值,获取所述目标节点对应的修改策略;determining the target node to be modified in the target page according to the return value corresponding to the node, and obtaining a modification policy corresponding to the target node according to the return value corresponding to the target node; 基于所述修改策略对所述目标页面进行修改得到修改后的目标页面,并展示所述修改后的目标页面。Modifying the target page based on the modification strategy to obtain a modified target page, and displaying the modified target page. 2.根据权利要求1所述的方法,其特征在于,所述识别所述目标页面的资源满足预设条件,包括:2. The method according to claim 1, wherein the resource identifying the target page satisfies a preset condition, comprising: 提取所述加载请求中的资源定位符;extracting the resource locator in the loading request; 在所述资源定位符与内部资源列表不匹配时,确定所述目标页面满足预设条件。When the resource locator does not match the internal resource list, it is determined that the target page satisfies a preset condition. 3.根据权利要求1所述的方法,其特征在于,所述基于预设规则对所述目标页面中的每个节点进行解析,得到每个所述节点对应的返回值,包括:3. The method according to claim 1, characterized in that, each node in the target page is analyzed based on preset rules to obtain a return value corresponding to each node, including: 将所述目标页面中的节点逐个输入至与之对应的模板函数中,所述模板函数用于返回所述节点中具有不利信息的情况;Inputting the nodes in the target page into corresponding template functions one by one, and the template function is used to return the situation that the nodes have unfavorable information; 根据所述节点是否具有不利信息,获取与所述节点对应的返回值。According to whether the node has unfavorable information, the return value corresponding to the node is acquired. 4.根据权利要求3所述的方法,其特征在于,所述目标页面中包含根节点,对应关系为目标属性,所述将所述目标页面中的节点逐个输入至与之对应的模板函数中,包括:4. The method according to claim 3, wherein the target page includes a root node, and the corresponding relationship is a target attribute, and the nodes in the target page are input into the corresponding template function one by one ,include: 获取所述根节点的所述目标属性;obtaining the target attribute of the root node; 根据所述目标属性,获取所述目标页面中与所述根节点类型相同的所有节点,并生成节点数据集;Acquire all nodes of the same type as the root node in the target page according to the target attribute, and generate a node data set; 将所述节点数据集输入至与所述目标属性对应的模板函数中。The node data set is input into a template function corresponding to the target attribute. 5.根据权利要求1所述的方法,其特征在于,所述返回值包括数据类型,所述根据所述节点对应的返回值,确定目标页面中需要修改的目标节点,包括:5. The method according to claim 1, wherein the return value includes a data type, and determining the target node to be modified in the target page according to the return value corresponding to the node includes: 识别所述返回值的类型不为预设类型时,确定所述返回值对应的所述节点为所述目标节点,其中,所述预设类型为值为空的对象类型。When it is identified that the type of the return value is not a preset type, it is determined that the node corresponding to the return value is the target node, wherein the preset type is an object type whose value is empty. 6.根据权利要求1所述的方法,其特征在于,所述根据所述目标节点对应的返回值,获取所述目标节点对应的修改策略,包括:6. The method according to claim 1, wherein said obtaining the modification policy corresponding to the target node according to the return value corresponding to the target node comprises: 将所述返回值发送至服务器,所述服务器用于根据所述返回值确定所述目标节点对应的修改策略;Send the return value to a server, and the server is used to determine the modification policy corresponding to the target node according to the return value; 接收所述服务器根据所述返回值确定的修改策略。receiving the modification policy determined by the server according to the return value. 7.根据权利要求6所述的方法,其特征在于,基于native接口与所述服务器进行通信,在所述将所述返回值发送至服务器之前,还包括:7. The method according to claim 6, wherein, communicating with the server based on a native interface, before sending the return value to the server, further comprising: 将所述返回值转换至所述native接口对应的数据类型,得到中间返回值;converting the return value to a data type corresponding to the native interface to obtain an intermediate return value; 对所述中间返回值进行函数编码,得到与所述返回值对应的字符串;Perform function encoding on the intermediate return value to obtain a character string corresponding to the return value; 将所述字符串发送至所述服务器,所述服务器用于基于所述字符串确定所述目标节点对应的修改策略。The character string is sent to the server, and the server is configured to determine a modification policy corresponding to the target node based on the character string. 8.根据权利要求1所述的方法,其特征在于,所述修改策略包括替换和删除,在所述修改策略为删除时,所述基于所述修改策略对所述目标页面进行修改得到修改后的目标页面,包括:8. The method according to claim 1, wherein the modification strategy includes replacement and deletion, and when the modification strategy is deletion, modifying the target page based on the modification strategy results in a modified target pages, including: 获取所述目标节点与前一节点之间的目标距离;Acquiring the target distance between the target node and the previous node; 将所述目标节点的后一节点与所述前一节点之间的距离修改为所述目标距离。modifying the distance between the node subsequent to the target node and the previous node to the target distance. 9.一种页面信息的展示装置,其特征在于,所述装置包括:9. A display device for page information, characterized in that the device comprises: 接收模块,用于在接收到目标页面的加载请求时,识别所述目标页面的资源满足预设条件;The receiving module is configured to, when receiving the loading request of the target page, identify that the resource of the target page satisfies a preset condition; 解析模块,用于基于预设规则对所述目标页面中的每个节点进行解析,得到每个所述节点对应的返回值;A parsing module, configured to parse each node in the target page based on preset rules, and obtain a return value corresponding to each node; 确定模块,用于根据所述节点对应的返回值,确定所述目标页面中需要修改的目标节点,并根据所述目标节点对应的返回值,获取所述目标节点对应的修改策略;A determining module, configured to determine a target node to be modified in the target page according to a return value corresponding to the node, and obtain a modification policy corresponding to the target node according to a return value corresponding to the target node; 加载模块,用于基于所述修改策略对所述目标页面进行修改得到修改后的目标页面,并展示所述修改后的目标页面。A loading module, configured to modify the target page based on the modification strategy to obtain a modified target page, and display the modified target page. 10.根据权利要求9所述的装置,其特征在于,所述接收模块,用于:10. The device according to claim 9, wherein the receiving module is configured to: 提取所述加载请求中的资源定位符;extracting the resource locator in the loading request; 在所述资源定位符与内部资源列表不匹配时,确定所述目标页面满足预设条件。When the resource locator does not match the internal resource list, it is determined that the target page satisfies a preset condition. 11.根据权利要求9所述的装置,其特征在于,所述确定模块,用于:11. The device according to claim 9, wherein the determining module is configured to: 将所述目标页面中的节点逐个输入至与之对应的模板函数中,所述模板函数用于返回所述节点中具有不利信息的情况;Inputting the nodes in the target page into corresponding template functions one by one, and the template function is used to return the situation that the nodes have unfavorable information; 根据所述节点是否具有不利信息,获取与所述节点对应的返回值。According to whether the node has unfavorable information, the return value corresponding to the node is obtained. 12.根据权利要求11所述的装置,其特征在于,所述目标页面中包含根节点,对应关系为目标属性,所述确定模块,还用于:12. The device according to claim 11, wherein the target page includes a root node, and the corresponding relationship is a target attribute, and the determining module is further configured to: 获取所述根节点的所述目标属性;obtaining the target attribute of the root node; 根据所述目标属性,获取所述目标页面中与所述根节点类型相同的所有节点,并生成节点数据集;Acquire all nodes of the same type as the root node in the target page according to the target attribute, and generate a node data set; 将所述节点数据集输入至与所述目标属性对应的模板函数中。The node data set is input into a template function corresponding to the target attribute. 13.根据权利要求9所述的装置,其特征在于,所述返回值包括数据类型,所述确定模块,还用于:13. The device according to claim 9, wherein the return value includes a data type, and the determining module is further used for: 识别所述返回值的类型不为预设类型时,确定所述返回值对应的所述节点为所述目标节点,其中,所述预设类型为值为空的对象类型。When it is identified that the type of the return value is not a preset type, it is determined that the node corresponding to the return value is the target node, wherein the preset type is an object type whose value is empty. 14.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时,实现如权利要求1-8中任一所述的页面信息的展示方法。14. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the program, the computer program according to claims 1-8 is realized. A method for displaying any of the page information. 15.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-8中任一所述的页面信息的展示方法。15. A computer-readable storage medium, on which a computer program is stored, wherein when the program is executed by a processor, the method for displaying page information according to any one of claims 1-8 is realized.
CN202110867384.7A 2021-07-28 2021-07-28 Page information display method, device, equipment and medium Pending CN115687815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110867384.7A CN115687815A (en) 2021-07-28 2021-07-28 Page information display method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110867384.7A CN115687815A (en) 2021-07-28 2021-07-28 Page information display method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115687815A true CN115687815A (en) 2023-02-03

Family

ID=85059470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110867384.7A Pending CN115687815A (en) 2021-07-28 2021-07-28 Page information display method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115687815A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117150484A (en) * 2023-10-30 2023-12-01 信智慧通科技(北京)有限公司 Page information processing method, device and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182505A (en) * 2014-08-19 2014-12-03 小米科技有限责任公司 Webpage rearrangement method and device
CN106202529A (en) * 2016-07-22 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of page rendering method and device
CN107491320A (en) * 2017-06-26 2017-12-19 北京五八信息技术有限公司 Loading method and device based on mixed mode Mobile solution
CN107562864A (en) * 2017-08-30 2018-01-09 努比亚技术有限公司 A kind of advertisement screen method, mobile terminal and computer-readable recording medium
CN110489636A (en) * 2018-05-15 2019-11-22 南京大学 A kind of web advertisement screen method based on code analysis and image procossing
CN110554950A (en) * 2018-05-30 2019-12-10 广州腾讯科技有限公司 Interface debugging method and device and storage medium
CN111353112A (en) * 2020-02-27 2020-06-30 百度在线网络技术(北京)有限公司 Page processing method and device, electronic equipment and computer readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182505A (en) * 2014-08-19 2014-12-03 小米科技有限责任公司 Webpage rearrangement method and device
CN106202529A (en) * 2016-07-22 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of page rendering method and device
CN107491320A (en) * 2017-06-26 2017-12-19 北京五八信息技术有限公司 Loading method and device based on mixed mode Mobile solution
CN107562864A (en) * 2017-08-30 2018-01-09 努比亚技术有限公司 A kind of advertisement screen method, mobile terminal and computer-readable recording medium
CN110489636A (en) * 2018-05-15 2019-11-22 南京大学 A kind of web advertisement screen method based on code analysis and image procossing
CN110554950A (en) * 2018-05-30 2019-12-10 广州腾讯科技有限公司 Interface debugging method and device and storage medium
CN111353112A (en) * 2020-02-27 2020-06-30 百度在线网络技术(北京)有限公司 Page processing method and device, electronic equipment and computer readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117150484A (en) * 2023-10-30 2023-12-01 信智慧通科技(北京)有限公司 Page information processing method, device and equipment
CN117150484B (en) * 2023-10-30 2024-02-13 信智慧通科技(北京)有限公司 Page information processing method, device and equipment

Similar Documents

Publication Publication Date Title
WO2021017735A1 (en) Smart contract formal verification method, electronic apparatus and storage medium
CN110858172B (en) A method and device for generating automatic test code
US8381094B1 (en) Incremental visual comparison of web browser screens
JP2023541186A (en) Visualization page rendering method, device, equipment and storage medium
CN110109983B (en) Method and device for operating Redis database
CN113076294B (en) Information sharing method and device
CN114398673A (en) Application compliance detection method and device, storage medium and electronic equipment
US20140052851A1 (en) Systems and methods for discovering sources of online content
JP2023024365A (en) Detection of api lower compatibility between software versions
US20150205767A1 (en) Link appearance formatting based on target content
CN113138767B (en) Code language conversion method, device, electronic equipment and storage medium
CN113656737A (en) Webpage content display method and device, electronic equipment and storage medium
CN116560661A (en) Code optimization method, device, equipment and storage medium
CN115687815A (en) Page information display method, device, equipment and medium
WO2024182108A1 (en) Computed values for knowledge graph
CN111767498A (en) Method and device for realizing file information sharing
CN114186101B (en) Data processing method, device, computer equipment and storage medium
CN116561013A (en) Test method, device, electronic equipment and medium based on target service framework
US11294649B1 (en) Techniques for translating between high level programming languages
CN114385937A (en) Page adaptation method, device, equipment and storage medium
CN113064987A (en) Data processing method, apparatus, electronic device, medium, and program product
US11847477B1 (en) Techniques for natively interpreting logic across disparate platforms
US20250110979A1 (en) Distributed orchestration of natural language tasks using a generate machine learning model
CN111241538B (en) Method, device, medium and electronic equipment for protecting node object variable
US20240205265A1 (en) Multi-layer browser-based context emulation detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination