CN114816382A - Method and device for processing page - Google Patents
Method and device for processing page Download PDFInfo
- Publication number
- CN114816382A CN114816382A CN202210438169.XA CN202210438169A CN114816382A CN 114816382 A CN114816382 A CN 114816382A CN 202210438169 A CN202210438169 A CN 202210438169A CN 114816382 A CN114816382 A CN 114816382A
- Authority
- CN
- China
- Prior art keywords
- page
- nodes
- node
- hierarchical structure
- element tree
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及应用开发领域,尤其涉及一种处理页面的方法和装置。The present invention relates to the field of application development, in particular to a method and device for processing pages.
背景技术Background technique
目前,小程序以其不需要安装即可使用的特点得到广泛应用,使用小程序的用户无需关心安装和卸载应用的问题,在较大程度上提升了用户体验。At present, Mini Programs are widely used because they can be used without installation. Users who use Mini Programs do not need to care about installing and uninstalling applications, which greatly improves user experience.
小程序通常是基于现有的应用开发,目前小程序显示页面的主要方式是,通过设定的JSON格式规范的代码描述页面的页面节点以及对应的样式信息显示页面,现有方法存在开发页面的灵活性较差,尤其是页面节点数量较多、节点层级较复杂的情况下,现有方法存在开发成本较高、开发效率较低的问题。Small programs are usually developed based on existing applications. At present, the main way for small programs to display pages is to describe the page nodes of the page and the corresponding style information through the set JSON format specification code to display the page. There are existing methods for developing pages. The flexibility is poor, especially in the case of a large number of page nodes and complex node levels, the existing methods have problems of high development cost and low development efficiency.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例提供一种处理页面的方法和装置,能够基于页面的多个页面节点、多个页面节点之间的层级结构以及所述页面节点的样式信息,构建页面元素树,基于所述页面元素树,渲染并显示页面,从而提高了显示小程序页面的通用性和灵活性,提高了开发小程序的效率。In view of this, embodiments of the present invention provide a method and apparatus for processing a page, which can build a page element tree based on multiple page nodes of a page, a hierarchical structure between multiple page nodes, and style information of the page nodes, Based on the page element tree, the page is rendered and displayed, thereby improving the versatility and flexibility of displaying the applet page and improving the efficiency of developing the applet.
为实现上述目的,根据本发明实施例的一个方面,提供了一种处理页面的方法,其特征在于,包括:获取页面包括的多个页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息;基于多个所述页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,构建页面元素树,其中,所述页面元素树包括的每一个节点对应于一个所述页面节点,所述页面元素树的结构与所述层级结构相匹配;响应于接收到页面显示触发,基于所述页面元素树,渲染并显示页面。In order to achieve the above object, according to an aspect of the embodiments of the present invention, a method for processing a page is provided, which includes: acquiring a plurality of page nodes included in a page, a hierarchical structure between the plurality of page nodes, and style information of a plurality of the page nodes; build a page element tree based on the plurality of the page nodes, the hierarchical structure between the plurality of the page nodes, and the style information of the plurality of the page nodes, wherein the page Each node included in the element tree corresponds to one of the page nodes, and the structure of the page element tree matches the hierarchical structure; in response to receiving a page display trigger, the page is rendered and displayed based on the page element tree.
可选地,所述处理页面的方法,其特征在于,所述获取页面包括的多个页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,包括:对所述页面的代码所包括的多个页面节点设置标签,其中,所述标签用于唯一标识所述页面节点;从所述页面的代码中解析出多个页面节点以及多个所述页面节点的层级结构;根据所述标签,从所述页面的代码中解析出对应于所述页面节点的样式信息。Optionally, the method for processing a page is characterized in that the acquiring a plurality of page nodes included in a page, a hierarchical structure between the plurality of page nodes, and style information of the plurality of page nodes, includes: Setting tags for multiple page nodes included in the code of the page, wherein the tags are used to uniquely identify the page nodes; and parse out multiple page nodes and multiple page nodes from the code of the page The hierarchical structure; according to the tag, the style information corresponding to the page node is parsed from the code of the page.
可选地,所述处理页面的方法,其特征在于,还包括:Optionally, the method for processing a page, further comprising:
基于解析出的多个所述页面节点以及多个所述页面节点的层级结构,构建虚拟文档对象模型;其中,所述虚拟文档对象模型指示多个所述页面节点之间的层级结构;所述构建页面元素树,包括:将多个所述页面节点的样式信息填充到所述虚拟文档对象模型,得到页面元素树。constructing a virtual document object model based on the parsed plurality of the page nodes and the hierarchical structure of the plurality of page nodes; wherein, the virtual document object model indicates a hierarchical structure between a plurality of the page nodes; the Building a page element tree includes: filling the virtual document object model with style information of a plurality of the page nodes to obtain a page element tree.
可选地,所述处理页面的方法,其特征在于,还包括:Optionally, the method for processing a page, further comprising:
构建出所述标签与所述页面节点以及所述样式信息的对应关系;constructing the corresponding relationship between the label, the page node and the style information;
所述构建页面元素树,包括:遍历所述虚拟文档对象模型包括的每一个页面节点,并根据所述页面节点的标签以及所述对应关系,查找所述页面节点是否存在样式信息,如果存在,则将所述样式信息填充到所述页面节点。The building a page element tree includes: traversing each page node included in the virtual document object model, and searching whether the page node has style information according to the label of the page node and the corresponding relationship, and if so, Then, the style information is filled into the page node.
可选地,所述处理页面的方法,其特征在于,Optionally, the method for processing a page is characterized in that:
所述渲染并显示页面,包括:从所述页面元素树的根节点开始,按照所述层级结构,逐层遍历并渲染所述页面元素树中的各个节点。The rendering and displaying of the page includes: starting from the root node of the page element tree, according to the hierarchical structure, traversing and rendering each node in the page element tree layer by layer.
可选地,所述处理页面的方法,其特征在于,Optionally, the method for processing a page is characterized in that:
所述按照所述层级结构,逐层遍历并渲染所述页面元素树中的各个节点,包括:在一个层级结构包含多个节点的情况下,按照设定顺序,依次遍历并渲染所述多个节点。The step of traversing and rendering each node in the page element tree layer by layer according to the hierarchical structure includes: in the case that a hierarchical structure includes multiple nodes, sequentially traversing and rendering the multiple nodes according to a set order node.
可选地,所述处理页面的方法,其特征在于,进一步包括:Optionally, the method for processing a page, further comprising:
为显示的所述页面生成对应的图像,以使用户分享所述页面的图像。A corresponding image is generated for the displayed page, so that the user can share the image of the page.
为实现上述目的,根据本发明实施例的第二方面,提供了一种处理页面的装置,其特征在于,包括:获取节点模块、构建节点树模块和显示页面模块;其中,In order to achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for processing a page, which is characterized by comprising: a module for acquiring a node, a module for constructing a node tree, and a module for displaying a page; wherein,
所述获取节点模块,用于获取页面包括的多个页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息;The acquiring node module is configured to acquire a plurality of page nodes included in a page, a hierarchical structure between a plurality of the page nodes, and style information of a plurality of the page nodes;
所述构建节点树模块,用于基于多个所述页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,构建页面元素树,其中,所述页面元素树包括的每一个节点对应于一个所述页面节点,所述页面元素树的结构与所述层级结构相匹配;The building node tree module is configured to build a page element tree based on a plurality of the page nodes, the hierarchical structure between the plurality of page nodes, and the style information of the plurality of page nodes, wherein the page element Each node included in the tree corresponds to one of the page nodes, and the structure of the page element tree matches the hierarchical structure;
所述显示页面模块,用于响应于接收到页面显示触发,基于所述页面元素树,渲染并显示页面。The display page module is configured to render and display a page based on the page element tree in response to receiving a page display trigger.
可选地,所述处理页面的装置,其特征在于,所述获取页面包括的多个页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,包括:对所述页面的代码所包括的多个页面节点设置标签,其中,所述标签用于唯一标识所述页面节点;从所述页面的代码中解析出多个页面节点以及多个所述页面节点的层级结构;根据所述标签,从所述页面的代码中解析出对应于所述页面节点的样式信息。Optionally, the apparatus for processing a page is characterized in that the acquiring a plurality of page nodes included in a page, a hierarchical structure among the plurality of page nodes, and style information of the plurality of page nodes includes: Setting tags for multiple page nodes included in the code of the page, wherein the tags are used to uniquely identify the page nodes; and parse out multiple page nodes and multiple page nodes from the code of the page The hierarchical structure; according to the tag, the style information corresponding to the page node is parsed from the code of the page.
可选地,所述处理页面的装置,其特征在于,还包括:Optionally, the device for processing pages, further comprising:
基于解析出的多个所述页面节点以及多个所述页面节点的层级结构,构建虚拟文档对象模型;其中,所述虚拟文档对象模型指示多个所述页面节点之间的层级结构;所述构建页面元素树,包括:将多个所述页面节点的样式信息填充到所述虚拟文档对象模型,得到页面元素树。constructing a virtual document object model based on the parsed plurality of the page nodes and the hierarchical structure of the plurality of page nodes; wherein, the virtual document object model indicates a hierarchical structure between a plurality of the page nodes; the Building a page element tree includes: filling the virtual document object model with style information of a plurality of the page nodes to obtain a page element tree.
可选地,所述处理页面的装置,其特征在于,还包括:Optionally, the device for processing pages, further comprising:
构建出所述标签与所述页面节点以及所述样式信息的对应关系;constructing the corresponding relationship between the label, the page node and the style information;
所述构建页面元素树,包括:遍历所述虚拟文档对象模型包括的每一个页面节点,并根据所述页面节点的标签以及所述对应关系,查找所述页面节点是否存在样式信息,如果存在,则将所述样式信息填充到所述页面节点。The building a page element tree includes: traversing each page node included in the virtual document object model, and searching whether the page node has style information according to the label of the page node and the corresponding relationship, and if so, Then, the style information is filled into the page node.
可选地,所述处理页面的装置,其特征在于,Optionally, the device for processing pages is characterized in that:
所述渲染并显示页面,包括:从所述页面元素树的根节点开始,按照所述层级结构,逐层遍历并渲染所述页面元素树中的各个节点。The rendering and displaying of the page includes: starting from the root node of the page element tree, according to the hierarchical structure, traversing and rendering each node in the page element tree layer by layer.
可选地,所述处理页面的装置,其特征在于,Optionally, the device for processing pages is characterized in that:
所述按照所述层级结构,逐层遍历并渲染所述页面元素树中的各个节点,包括:在一个层级结构包含多个节点的情况下,按照设定顺序,依次遍历并渲染所述多个节点。The step of traversing and rendering each node in the page element tree layer by layer according to the hierarchical structure includes: in the case that a hierarchical structure includes multiple nodes, sequentially traversing and rendering the multiple nodes according to a set order node.
可选地,所述处理页面的装置,其特征在于,进一步包括:Optionally, the device for processing pages is characterized in that, further comprising:
为显示的所述页面生成对应的图像,以使用户分享所述页面的图像。A corresponding image is generated for the displayed page, so that the user can share the image of the page.
为实现上述目的,根据本发明实施例的第三方面,提供了一种处理页面的电子设备,其特征在于,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述处理页面的方法中任一所述的方法。In order to achieve the above object, according to a third aspect of the embodiments of the present invention, an electronic device for processing pages is provided, which is characterized by comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any one of the above-mentioned methods of processing pages.
为实现上述目的,根据本发明实施例的第四方面,提供了一种计算机可读介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如上述处理页面的方法中任一所述的方法。In order to achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the above-mentioned method for processing a page is implemented any of the methods described above.
上述发明中的一个实施例具有如下优点或有益效果:能够基于页面的多个页面节点、多个页面节点之间的层级结构以及所述页面节点的样式信息,构建页面元素树,基于所述页面元素树,渲染并显示页面,从而提高了显示小程序页面的通用性和灵活性,提高了开发小程序的效率。One embodiment of the above invention has the following advantages or beneficial effects: a page element tree can be constructed based on multiple page nodes of a page, a hierarchical structure between multiple page nodes, and style information of the page nodes, and based on the page Element tree, rendering and displaying pages, thereby improving the versatility and flexibility of displaying applet pages, and improving the efficiency of developing applet programs.
上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.
附图说明Description of drawings
附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used for better understanding of the present invention and do not constitute an improper limitation of the present invention. in:
图1是本发明一个实施例提供的一种处理页面的方法的流程示意图;1 is a schematic flowchart of a method for processing a page provided by an embodiment of the present invention;
图2是本发明一个实施例提供的一种页面节点的布局示意图;2 is a schematic layout diagram of a page node provided by an embodiment of the present invention;
图3是本发明一个实施例提供的一种页面元素树的示意图;3 is a schematic diagram of a page element tree provided by an embodiment of the present invention;
图4是本发明一个实施例提供的一种遍历页面节点顺序的示意图;4 is a schematic diagram of a sequence of traversing page nodes according to an embodiment of the present invention;
图5是本发明一个实施例提供的一种处理页面的装置的结构示意图;5 is a schematic structural diagram of an apparatus for processing a page provided by an embodiment of the present invention;
图6是本发明实施例可以应用于其中的示例性系统架构图;FIG. 6 is an exemplary system architecture diagram to which an embodiment of the present invention may be applied;
图7是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
如图1所示,本发明实施例提供了一种处理页面的方法,该方法可以包括以下步骤:As shown in FIG. 1, an embodiment of the present invention provides a method for processing a page, and the method may include the following steps:
步骤S101:获取页面包括的多个页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息。Step S101: Acquire a plurality of page nodes included in a page, a hierarchical structure among the plurality of page nodes, and style information of the plurality of page nodes.
具体地,页面可以是小程序中待显示的页面;页面中包含待显示的多个页面节点,其中,页面节点可以对应于页面包括的组件,例如:容器组件、文本组件、按钮组件、图像组件、自定义组件等;页面节点之间具有一个或多个层级的层级结构,例如:如图2所示的页面示意图中,例如页面节点A为容器组件,包含页面节点B、页面节点C;页面节点C又包含页面节点G和页面节点H;由此可见,页面节点B、页面节点C为页面节点A的下一层级,且页面节点B、页面节点C为相同层级;进一步地,获取多个所述页面节点的样式信息,其中,待显示的一个或多个页面节点对应具有样式信息,例如:按钮组件的样式信息包括组件大小、组件在页面中的显示位置、组件标签、组件颜色等;可以理解的是,通过样式信息可以确定组件(即页面节点)的显示样式。Specifically, the page can be a page to be displayed in the applet; the page contains multiple page nodes to be displayed, wherein the page nodes can correspond to the components included in the page, such as: container components, text components, button components, image components , custom components, etc.; there is a hierarchical structure of one or more levels between page nodes, for example: in the page schematic diagram shown in Figure 2, for example, page node A is a container component, including page node B and page node C; page Node C also includes page node G and page node H; it can be seen that page node B and page node C are the next level of page node A, and page node B and page node C are the same level; further, obtain multiple The style information of the page node, wherein one or more page nodes to be displayed have corresponding style information, for example: the style information of the button component includes the component size, the display position of the component on the page, the component label, the component color, etc.; It can be understood that the display style of the component (ie, the page node) can be determined through the style information.
进一步地,所述获取页面包括的多个页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,包括:对所述页面的代码所包括的多个页面节点设置标签,其中,所述标签用于唯一标识所述页面节点;从所述页面的代码中解析出多个页面节点以及多个所述页面节点的层级结构;根据所述标签,从所述页面的代码中解析出对应于所述页面节点的样式信息。示例性地,可以基于Taro开发小程序,Taro是一个开放式跨端跨框架解决方案,该解决方案可以支持使用React、Vue、Nerv等框架来开发多个应用平台的小程序;在本发明中,小程序页面的代码可以基于设定编码格式进行布局并开发的,例如:基于React框架的React.js编码格式或者Vue框架对应的编码格式,在基于React.js编码格式的情况下,还可以利用接口(例如Poster Component)对页面节点(组件)进行封装。Further, the acquiring a plurality of page nodes included in a page, a hierarchical structure between a plurality of the page nodes, and style information of a plurality of the page nodes includes: acquiring a plurality of pages included in the code of the page A node setting label, wherein the label is used to uniquely identify the page node; a plurality of page nodes and a hierarchical structure of a plurality of the page nodes are parsed from the code of the page; according to the label, from the The style information corresponding to the page node is parsed from the code of the page. Exemplarily, small programs can be developed based on Taro, which is an open cross-end and cross-framework solution, which can support the use of React, Vue, Nerv and other frameworks to develop small programs for multiple application platforms; in the present invention , the code of the applet page can be laid out and developed based on the set encoding format, for example: the React.js encoding format based on the React framework or the encoding format corresponding to the Vue framework, in the case of using the React.js encoding format, you can also Use an interface (such as Poster Component) to encapsulate page nodes (components).
进一步地,获取页面的代码,遍历页面的代码中的待显示的页面节点,对所述页面的代码所包括的多个页面节点设置标签,其中,所述标签用于唯一标识所述页面节点,标签可以是字母、符号或数字中的一种或多种组合成的唯一标识,用于区分不同的页面节点;例如,图2的页面示意图中,页面节点A的标签为“A”、页面节点B的标签为“B”。即,标签与页面节点中间存在一一对应的对应关系;进一步地,根据标签,从页面的代码中解析出对应于所述页面节点的样式信息,例如:针对页面节点F,获取页面节点F对应的样式信息,即建立页面节点的样式信息与标签的一一对应关系;即,构建出所述标签与所述页面节点以及所述样式信息的对应关系;由此可见,通过标签(页面节点的唯一标识)将同一个页面节点与对应的一个或多个样式信息加以绑定和关联,并将不同页面节点以及样式信息加以区分,提高了确定页面节点的效率。Further, obtaining the code of the page, traversing the page nodes to be displayed in the code of the page, and setting labels on the plurality of page nodes included in the code of the page, wherein the labels are used to uniquely identify the page nodes, The label can be a unique identifier composed of one or more of letters, symbols or numbers, which is used to distinguish different page nodes; for example, in the page schematic diagram of FIG. B is labeled "B". That is, there is a one-to-one correspondence between the label and the page node; further, according to the label, the style information corresponding to the page node is parsed from the code of the page, for example: for the page node F, the corresponding page node F is obtained. style information, that is, establish a one-to-one correspondence between the style information of the page node and the label; that is, build the corresponding relationship between the label and the page node and the style information; Unique identification) binds and associates the same page node with one or more corresponding style information, and distinguishes different page nodes and style information, which improves the efficiency of determining page nodes.
进一步地,根据所述标签,从所述页面的代码中解析出对应于所述页面节点的样式信息,将样式信息以及样式信息与标签的对应关系存储于数组、数据库等数据结构中;在后续构建元素树中可以从该数据结构中获取样式信息。Further, according to the label, the style information corresponding to the page node is parsed from the code of the page, and the style information and the corresponding relationship between the style information and the label are stored in data structures such as arrays and databases; Style information can be obtained from this data structure in building the element tree.
进一步地,从所述页面的代码中解析出多个页面节点以及多个所述页面节点的层级结构;其中,解析多个页面节点以及多个所述页面节点的层级结构可以通过构建页面对应的虚拟文档对象模型来获得页面节点的层级结构,虚拟文档对象模型即虚拟DOM(文档对象模型,Document Object Model,简称DOM);即,所述虚拟文档对象模型指示多个所述页面节点之间的层级结构;以基于React工具所开发小程序为例,可以利用React工具解析页面包含的组件结构代码,并生成包含页面节点层级结构的虚拟DOM,并利用React工具的内部对象(例如fibers)存储虚拟DOM的信息;其中,存储虚拟DOM的信息的方式可以是数据复合链表、数据库等,本发明对虚拟DOM的存储方式不做限定。其中,虚拟DOM除了包含页面节点的层级结构之外,还可以包含页面节点的类型,页面节点的类型可以为HTML组件的标签类型,例如:div、text、span、p、img等。其中,本发明所使用的虚拟DOM中包含页面节点的标签、以及页面节点和对应的标签的对应关系;在后续构建元素树中可以从该数据结构中获取页面节点的信息(例如:节点类型等)。Further, a plurality of page nodes and a plurality of hierarchical structures of the plurality of page nodes are parsed from the code of the page; wherein, the analysis of the plurality of page nodes and the hierarchical structure of the plurality of the page nodes can be performed by constructing the corresponding pages of the page. The virtual document object model is used to obtain the hierarchical structure of the page nodes, and the virtual document object model is the virtual DOM (Document Object Model, Document Object Model, DOM for short); that is, the virtual document object model indicates the Hierarchical structure; Take the applet developed based on the React tool as an example, you can use the React tool to parse the component structure code contained in the page, generate a virtual DOM containing the hierarchical structure of the page nodes, and use the React tool's internal objects (such as fibers) to store virtual DOM information; wherein, the method of storing the information of the virtual DOM may be a data composite linked list, a database, etc., and the present invention does not limit the storage method of the virtual DOM. The virtual DOM may include, in addition to the hierarchical structure of the page nodes, the type of the page node, and the type of the page node may be the label type of the HTML component, such as: div, text, span, p, img, and so on. Wherein, the virtual DOM used in the present invention includes the label of the page node and the corresponding relationship between the page node and the corresponding label; in the subsequent construction of the element tree, the information of the page node (for example: node type, etc.) can be obtained from the data structure. ).
步骤S102:基于多个所述页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,构建页面元素树,其中,所述页面元素树包括的每一个节点对应于一个所述页面节点,所述页面元素树的结构与所述层级结构相匹配。Step S102: Build a page element tree based on a plurality of the page nodes, the hierarchical structure between the plurality of the page nodes, and the style information of the plurality of the page nodes, wherein each node included in the page element tree Corresponding to one of the page nodes, the structure of the page element tree matches the hierarchical structure.
具体地,关于页面节点、页面节点之间的层级结构以及多个所述页面节点的样式信息的描述与步骤S101的描述一致,在此不再赘述。Specifically, the description about the page node, the hierarchical structure between the page nodes, and the style information of the plurality of page nodes is consistent with the description of step S101, and details are not repeated here.
进一步地,基于多个所述页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,构建页面元素树。其中,所述页面元素树包括的每一个节点对应于一个所述页面节点,所述页面元素树的结构与所述层级结构相匹配。Further, a page element tree is constructed based on the plurality of page nodes, the hierarchical structure between the plurality of page nodes, and the style information of the plurality of page nodes. Wherein, each node included in the page element tree corresponds to one of the page nodes, and the structure of the page element tree matches the hierarchical structure.
下面以图3所示的页面元素树示意图为例说明,其中,基于图2所示的页面节点的布局和层级结构得到图3所示的页面节点对应的页面元素树,如图3所示,图3中页面元素树的节点“A”对应于图2中的页面节点A,以此类推;其中,页面元素树的层级结构与虚拟文档对象模型指示的页面节点之间的层级结构一致,并且,页面元素树中的节点由页面节点结合页面节点对应的样式信息生成,即,构建出所述标签与所述页面节点以及所述样式信息的对应关系;所述构建页面元素树,包括:遍历所述虚拟文档对象模型包括的每一个页面节点,并根据所述页面节点的标签以及所述对应关系,查找所述页面节点是否存在样式信息,如果存在,则将所述样式信息填充到所述页面节点。可以理解的是,针对一些布局相关的页面节点的类型,例如:<html>、<body>等可以不具有对应的样式信息,则在遍历页面节点时,无需将样式信息填充至页面节点;即遍历所述虚拟文档对象模型包括的每一个页面节点,并根据所述页面节点的标签以及所述对应关系,查找所述页面节点是否存在样式信息,如果存在,则将所述样式信息填充到所述页面节点。The following takes the schematic diagram of the page element tree shown in FIG. 3 as an example, wherein the page element tree corresponding to the page node shown in FIG. 3 is obtained based on the layout and hierarchical structure of the page node shown in FIG. 2 , as shown in FIG. 3 , The node "A" of the page element tree in Fig. 3 corresponds to the page node A in Fig. 2, and so on; wherein, the hierarchical structure of the page element tree is consistent with the hierarchical structure between the page nodes indicated by the virtual document object model, and , the nodes in the page element tree are generated by the page nodes in combination with the style information corresponding to the page nodes, that is, constructing the corresponding relationship between the label, the page node and the style information; the building the page element tree includes: traversing For each page node included in the virtual document object model, according to the label of the page node and the corresponding relationship, find out whether the page node has style information, and if so, fill the style information into the page node. page node. It can be understood that, for some types of layout-related page nodes, such as: <html>, <body>, etc. may not have corresponding style information, when traversing the page nodes, there is no need to fill the style information to the page nodes; that is, Traverse each page node included in the virtual document object model, and according to the label of the page node and the corresponding relationship, find out whether the page node has style information, and if so, fill the style information into all the page nodes. the page node.
进一步地,基于页面节点、页面节点的样式信息(生成了页面元素树的节点),并根据虚拟文档对象模型的层级结构,生成页面元素树;可以理解的是,根据显示页面的场景,可以生成一个页面元素树,也可以生成多个页面元素树;即,基于解析出的多个所述页面节点以及多个所述页面节点的层级结构,构建虚拟文档对象模型;其中,所述虚拟文档对象模型指示多个所述页面节点之间的层级结构;所述构建页面元素树,包括:将多个所述页面节点的样式信息填充到所述虚拟文档对象模型,得到页面元素树。Further, based on the page node, the style information of the page node (the node of the page element tree is generated), and according to the hierarchical structure of the virtual document object model, the page element tree is generated; A page element tree can also generate multiple page element trees; that is, a virtual document object model is constructed based on the parsed multiple of the page nodes and the hierarchical structure of the multiple page nodes; wherein, the virtual document object The model indicates a hierarchical structure among a plurality of the page nodes; the building a page element tree includes: filling the virtual document object model with style information of the plurality of page nodes to obtain a page element tree.
步骤S103:响应于接收到页面显示触发,基于所述页面元素树,渲染并显示页面。Step S103: In response to receiving the page display trigger, render and display the page based on the page element tree.
具体地,在接收到显示页面的请求、指令后,即,接收到页面显示触发,基于所述页面元素树,渲染并显示页面。Specifically, after receiving the request and instruction for displaying the page, that is, receiving the page display trigger, the page is rendered and displayed based on the page element tree.
进一步地,基于所述页面元素树,渲染并显示页面的方法包括:从所述页面元素树的根节点开始,按照所述层级结构,逐层遍历并渲染所述页面元素树中的各个节点。以图4所示的多个页面节点为例,从根节点(“页面节点A”)开始,按照层级结构逐层遍历,即,页面节点A->页面节点B->页面节点C,即对应的顺序为①②③,其他层级的页面节点以此类推;进一步地,所述按照所述层级结构,逐层遍历并渲染所述页面元素树中的各个节点,包括:在一个层级结构包含多个节点的情况下,按照设定顺序,依次遍历并渲染所述多个节点。仍以图4的示意图为例,页面节点D、页面节点E、页面节点F为一个层级结构包含的3个节点,则按照设定顺序,依次遍历并渲染所述多个节点;如图4所示,设定顺序为④⑤⑥,对应的遍历并渲染页面节点的顺序为页面节点D、页面节点E、页面节点F;其中,确定设定顺序的方法可以为:为同一个层级结构的页面节点设置索引,根据索引值的升序或者降序确定遍历和渲染的设定顺序;或者将页面节点的标签的标签值进行排序确定遍历和渲染页面节点的设定顺序;或者利用样式信息包含的属性值z-index的值确定设定顺序。Further, based on the page element tree, the method for rendering and displaying a page includes: starting from the root node of the page element tree, according to the hierarchical structure, traversing and rendering each node in the page element tree layer by layer. Taking the multiple page nodes shown in FIG. 4 as an example, starting from the root node (“page node A”), traversing layer by layer according to the hierarchical structure, that is, page node A->page node B->page node C, which corresponds to The order is ①②③, and so on for other levels of page nodes; further, according to the hierarchical structure, traversing and rendering each node in the page element tree layer by layer, including: a hierarchical structure containing multiple nodes In the case of , the multiple nodes are traversed and rendered in sequence according to the set order. Still taking the schematic diagram of FIG. 4 as an example, page node D, page node E, and page node F are 3 nodes included in a hierarchical structure, then according to the set order, the multiple nodes are traversed and rendered in turn; as shown in FIG. 4 . As shown, the setting order is ④⑤⑥, and the corresponding order of traversing and rendering page nodes is page node D, page node E, and page node F; wherein, the method for determining the setting order can be: setting the page nodes for the same hierarchical structure Index, determine the set order of traversal and rendering according to the ascending or descending order of the index value; or sort the label values of the page nodes to determine the set order of traversing and rendering page nodes; or use the attribute value z- The value of index determines the setting order.
进一步地,渲染并显示页面包含两种方法:Further, rendering and displaying the page consists of two methods:
第一种方法:基于所述页面元素树,利用HTML5包含的Canvas工具的应用程序接口绘制(渲染)并显示页面。基于页面元素树渲染页面,从而提高了显示页面的灵活性和开发页面的开发效率。The first method: based on the page element tree, draw (render) and display the page by using the application program interface of the Canvas tool included in HTML5. The page is rendered based on the page element tree, thereby improving the flexibility of displaying pages and the development efficiency of developing pages.
第二种方法:基于所述页面元素树,利用HTML5包含的Canvas工具的应用程序接口为显示的页面生成对应的图像,以使用户分享所述页面的图像。克服了在小程序中无法直接分享页面内容或页面包含的图像的问题。The second method: based on the page element tree, use the application program interface of the Canvas tool included in HTML5 to generate a corresponding image for the displayed page, so that the user can share the image of the page. Overcome the problem that the content of the page or the images contained in the page cannot be directly shared in the applet.
由此可见,通过本发明的处理页面的步骤,提高了开发小程序页面的效率,提高了开发小程序页面的通用性,提高了显示小程序页面的准确性,并实现了通过渲染得到小程序页面的图片的有益效果。It can be seen that through the steps of processing pages of the present invention, the efficiency of developing applet pages is improved, the versatility of developing applet pages is improved, the accuracy of displaying applet pages is improved, and the applet page is obtained by rendering. The beneficial effect of pictures on the page.
如图5所示,本发明实施例提供了一种处理页面的装置500,包括:获取节点模块501、构建节点树模块502和显示页面模块503;其中,As shown in FIG. 5, an embodiment of the present invention provides an
所述获取节点模块501,用于获取页面包括的多个页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息;The obtaining
所述构建节点树模块502,用于基于多个所述页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,构建页面元素树,其中,所述页面元素树包括的每一个节点对应于一个所述页面节点,所述页面元素树的结构与所述层级结构相匹配;The building
所述显示页面模块503,用于响应于接收到页面显示触发,基于所述页面元素树,渲染并显示页面。The
本发明实施例还提供了一种处理页面的电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现上述任一实施例提供的方法。An embodiment of the present invention also provides an electronic device for processing pages, including: one or more processors; and a storage device for storing one or more programs, when the one or more programs are processed by the one or more programs Each processor executes, so that the one or more processors implement the method provided by any one of the foregoing embodiments.
本发明实施例还提供了一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现上述任一实施例提供的方法。An embodiment of the present invention further provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, implements the method provided by any of the foregoing embodiments.
图6示出了可以应用本发明实施例的处理页面的方法或处理页面的装置的示例性系统架构600。FIG. 6 shows an
如图6所示,系统架构600可以包括终端设备601、602、603,网络604和服务器605。网络604用以在终端设备601、602、603和服务器605之间提供通信链路的介质。网络604可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 6 , the
用户可以使用终端设备601、602、603通过网络604与服务器605交互,以接收或发送消息等。终端设备601、602、603上可以安装有挂载小程序的各种客户端应用,例如电子商城客户端应用、搜索类应用、即时通信工具等。The user can use the
终端设备601、602、603可以是具有显示屏并且支持各种客户端应用的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。
服务器605可以是提供各种服务的服务器,例如对用户利用终端设备601、602、603所使用的客户端应用提供支持的后台管理服务器。后台管理服务器可以对关联于页面的页面节点数据进行处理,并页面节点数据提供给终端设备。The
需要说明的是,本发明实施例所提供的处理页面的方法一般由终端设备601、602、603执行,相应地,处理页面的装置一般设置于终端设备601、602、603中。It should be noted that the methods for processing pages provided by the embodiments of the present invention are generally executed by
应该理解,图6中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 6 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.
下面参考图7,其示出了适于用来实现本发明实施例的终端设备的计算机系统700的结构示意图。图7示出的终端设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring next to FIG. 7 , it shows a schematic structural diagram of a
如图7所示,计算机系统700包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统700操作所需的各种程序和数据。CPU 701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7, a
以下部件连接至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
特别地,根据本发明公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本发明的系统中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs in accordance with the disclosed embodiments of the present invention. For example, embodiments disclosed herein include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the
需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, 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 the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable 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, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
描述于本发明实施例中所涉及到的模块和/或单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块和/或单元也可以设置在处理器中,例如,可以描述为:一种处理器包括获取节点模块、构建节点树模块和显示页面模块;其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,显示页面模块还可以被描述为“基于所述页面元素树,渲染并显示页面的模块”。The modules and/or units involved in the embodiments of the present invention may be implemented in a software manner, and may also be implemented in a hardware manner. The described modules and/or units can also be set in a processor, for example, it can be described as: a processor includes a module for acquiring nodes, a module for building a node tree, and a module for displaying pages; wherein the names of these modules are in some cases. The following does not constitute a limitation of the module itself, for example, the display page module can also be described as "a module that renders and displays a page based on the page element tree".
作为另一方面,本发明还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该设备包括:获取页面包括的多个页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息;基于多个所述页面节点、多个所述页面节点之间的层级结构以及多个所述页面节点的样式信息,构建页面元素树,其中,所述页面元素树包括的每一个节点对应于一个所述页面节点,所述页面元素树的结构与所述层级结构相匹配;响应于接收到页面显示触发,基于所述页面元素树,渲染并显示页面。As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device includes: acquiring a plurality of page nodes included in a page, a plurality of pages between the page nodes. A hierarchical structure and style information of a plurality of the page nodes; a page element tree is constructed based on a plurality of the page nodes, the hierarchical structure between the plurality of the page nodes, and the style information of the plurality of the page nodes, wherein, Each node included in the page element tree corresponds to one of the page nodes, and the structure of the page element tree matches the hierarchical structure; in response to receiving a page display trigger, based on the page element tree, rendering and Display the page.
本发明的实施例,能够基于页面的多个页面节点、多个页面节点之间的层级结构以及所述页面节点的样式信息,构建页面元素树,基于所述页面元素树,渲染并显示页面,从而提高了显示小程序页面的通用性和灵活性,提高了开发小程序的效率。In the embodiment of the present invention, a page element tree can be constructed based on multiple page nodes of a page, a hierarchical structure between multiple page nodes, and style information of the page nodes, and a page can be rendered and displayed based on the page element tree, Thus, the versatility and flexibility of displaying the applet page is improved, and the efficiency of developing the applet is improved.
上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210438169.XA CN114816382A (en) | 2022-04-25 | 2022-04-25 | Method and device for processing page |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210438169.XA CN114816382A (en) | 2022-04-25 | 2022-04-25 | Method and device for processing page |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114816382A true CN114816382A (en) | 2022-07-29 |
Family
ID=82507141
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210438169.XA Pending CN114816382A (en) | 2022-04-25 | 2022-04-25 | Method and device for processing page |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114816382A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116089892A (en) * | 2023-02-20 | 2023-05-09 | 中银金融科技有限公司 | Page rendering anomaly detection method, device, equipment and medium |
| WO2024109400A1 (en) * | 2022-11-25 | 2024-05-30 | 腾讯科技(深圳)有限公司 | Sub-application page processing method and apparatus, and computer device and storage medium |
| WO2025162406A1 (en) * | 2024-01-31 | 2025-08-07 | 北京字跳网络技术有限公司 | Page display method and apparatus, device and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111124379A (en) * | 2019-11-25 | 2020-05-08 | 贝壳技术有限公司 | Page generation method and device, electronic equipment and storage medium |
| CN113377373A (en) * | 2021-06-23 | 2021-09-10 | 深圳平安智汇企业信息管理有限公司 | Page loading method and device based on analysis engine, computer equipment and medium |
-
2022
- 2022-04-25 CN CN202210438169.XA patent/CN114816382A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111124379A (en) * | 2019-11-25 | 2020-05-08 | 贝壳技术有限公司 | Page generation method and device, electronic equipment and storage medium |
| CN113377373A (en) * | 2021-06-23 | 2021-09-10 | 深圳平安智汇企业信息管理有限公司 | Page loading method and device based on analysis engine, computer equipment and medium |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024109400A1 (en) * | 2022-11-25 | 2024-05-30 | 腾讯科技(深圳)有限公司 | Sub-application page processing method and apparatus, and computer device and storage medium |
| CN116089892A (en) * | 2023-02-20 | 2023-05-09 | 中银金融科技有限公司 | Page rendering anomaly detection method, device, equipment and medium |
| WO2025162406A1 (en) * | 2024-01-31 | 2025-08-07 | 北京字跳网络技术有限公司 | Page display method and apparatus, device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110019350B (en) | Data query method and device based on configuration information | |
| US10942708B2 (en) | Generating web API specification from online documentation | |
| CN114816382A (en) | Method and device for processing page | |
| CN110263277B (en) | Page data display method, page data updating device, page data equipment and storage medium | |
| CN110109979B (en) | Form option configuration method and device | |
| CN110471848B (en) | Method and device for dynamically returning message | |
| CN113760698B (en) | A method and device for converting test case file data | |
| CN111324342A (en) | Method, device, medium and electronic equipment for generating interface layer code | |
| CN113031946A (en) | Method and device for rendering page component | |
| CN112486482A (en) | Page display method and device | |
| CN111062682B (en) | Work order processing method and device | |
| CN112926008A (en) | Method and device for generating form page, electronic equipment and storage medium | |
| CN115599386A (en) | Code generation method, device, equipment and storage medium | |
| CN113220381A (en) | Click data display method and device | |
| CN113778404A (en) | A method and device for generating a page | |
| CN111444235A (en) | Django-based data serialization method, device, computer equipment and storage medium | |
| CN113642295A (en) | Page layout method, apparatus and computer program product | |
| CN113609309B (en) | Knowledge graph construction method and device, storage medium and electronic equipment | |
| CN113760271B (en) | A method and device for generating code for describing a page | |
| CN111178025A (en) | Editing method, device, computer equipment and storage medium of nuclear power plant operation guide | |
| CN113312568B (en) | Web information extraction method and system based on HTML source code and webpage snapshot | |
| CN118069012B (en) | Display interface information configuration method, device, equipment and computer readable medium | |
| CN111523295B (en) | Data rendering method, device, medium and electronic equipment | |
| CN115328324B (en) | Method and device for inputting characters at mobile terminal | |
| CN114527972B (en) | A page generation method, device, electronic device and computer readable medium |
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 |