A method and device for generating configuration files
By entering the target link address and selection operations in the configuration file editing application, the configuration file is generated, and the problems of poor H5 performance and high development costs of native applications are solved, native rendering and rapid iteration are realized, and development difficulty and cost are reduced.
Patent Information
- Application Number
- CN202010982290.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-17
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2040-09-17
AI Technical Summary
In the prior art, the web pages implemented by H5 are poor and have security problems, while the native application development cost is high, making it difficult to meet the needs of rapid iteration and cross-platform.
By entering the target link address in the configuration file editing application, the target HTML page is presented, and the corresponding relationship between the native control and the information flow is determined according to the user's selection operations on the template page and the HTML page, the configuration file is generated, and native rendering is realized.
It simplifies the development process of configuration files, reduces development difficulty and cost, improves development efficiency, and enables non-developers to generate configuration files easily and quickly through visual operations.
Smart Images

Figure CN112241500B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a technology for generating a configuration file. Background Art
[0002] In the prior art, web pages are usually presented in the form of H5 (HTML5) or Native app. The H5 implementation has the advantages of being cross-platform, low development cost, available online at any time, and suitable for rapid iteration. However, since it needs to be rendered based on the browser kernel, the performance of this implementation is poor and there are security issues such as browser hijacking. The native application implementation is based on the native operating system of the user's device for rendering, with better performance and security, but higher development costs. Summary of the invention
[0003] One object of the present application is to provide a method and device for generating a configuration file.
[0004] According to one aspect of the present application, a method for generating a configuration file is provided, the method comprising:
[0005] In response to a link address input operation performed by a user, acquiring a target link address input by the user, and presenting a target hypertext markup language HTML page corresponding to the target link address;
[0006] In response to a selection operation performed by the user in one or more preset template pages, obtaining a target template page selected by the user, and presenting the target template page, wherein the target template page includes one or more native controls;
[0007] Determine at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one corresponding relationship among the at least one corresponding relationship is a corresponding relationship between a native control corresponding to a first selection operation in the at least one first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation;
[0008] A configuration file corresponding to the target link address is generated according to the at least one corresponding relationship.
[0009] According to one aspect of the present application, a user device for generating a configuration file is provided, the device comprising:
[0010] A module, configured to, in response to a link address input operation performed by a user, obtain a target link address input by the user, and present a target hypertext markup language HTML page corresponding to the target link address;
[0011] A module 12 is used for obtaining a target template page selected by the user in response to a selection operation performed by the user in one or more preset template pages, and presenting the target template page, wherein the target template page includes one or more native controls;
[0012] A module 3 is used to determine at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one corresponding relationship among the at least one corresponding relationship is a corresponding relationship between a native control corresponding to a first selection operation in the at least one first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation;
[0013] A module 14 is used to generate a configuration file corresponding to the target link address according to the at least one corresponding relationship.
[0014] According to one aspect of the present application, a device for generating a configuration file is provided, wherein the device includes:
[0015] Processor; and
[0016] A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the following operations:
[0017] In response to a link address input operation performed by a user, acquiring a target link address input by the user, and presenting a target hypertext markup language HTML page corresponding to the target link address;
[0018] In response to a selection operation performed by the user in one or more preset template pages, obtaining a target template page selected by the user, and presenting the target template page, wherein the target template page includes one or more native controls;
[0019] Determine at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one corresponding relationship among the at least one corresponding relationship is a corresponding relationship between a native control corresponding to a first selection operation in the at least one first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation;
[0020] A configuration file corresponding to the target link address is generated according to the at least one corresponding relationship.
[0021] According to one aspect of the present application, a computer readable medium storing instructions is provided, wherein when the instructions are executed, the system performs the following operations:
[0022] In response to a link address input operation performed by a user, acquiring a target link address input by the user, and presenting a target hypertext markup language HTML page corresponding to the target link address;
[0023] In response to a selection operation performed by the user in one or more preset template pages, obtaining a target template page selected by the user, and presenting the target template page, wherein the target template page includes one or more native controls;
[0024] Determine at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one corresponding relationship among the at least one corresponding relationship is a corresponding relationship between a native control corresponding to a first selection operation in the at least one first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation;
[0025] A configuration file corresponding to the target link address is generated according to the at least one corresponding relationship.
[0026] Compared with the prior art, the present application presents a target HTML page corresponding to the target link address by a user inputting a target link address in a configuration file editing application, presents a target template page according to a target template page selected by the user from one or more preset template pages, and determines a correspondence between a native control corresponding to each first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, and generates a configuration file corresponding to the target link address according to the at least one determined correspondence, so that after the user inputs the target link address in the HTML browsing application, by obtaining the configuration file corresponding to the target link address, one or more native controls in the corresponding target template page are created on the current page, one or more information flows are obtained from the page information of the corresponding HTML page and bound to the corresponding native controls, and the one or more native controls are natively rendered on the current page. The present application can facilitate the generation of configuration files, reduce the difficulty and cost of developing configuration files, and improve the efficiency of developing configuration files, so that non-developers can quickly and easily generate configuration files through a series of visual operations in the configuration file editing application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Other features, 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:
[0028] Figure 1 A flow chart of a method for generating a configuration file according to an embodiment of the present application is shown;
[0029] Figure 2 A structural diagram of a user device for generating a configuration file according to an embodiment of the present application is shown;
[0030] Figure 3 An exemplary system is shown that can be used to implement the various embodiments described in this application.
[0031] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0032] The present application is described in further detail below in conjunction with the accompanying drawings.
[0033] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (eg, a central processing unit (CPU)), an input / output interface, a network interface and a memory.
[0034] Memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory. Memory is an example of a computer-readable medium.
[0035] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of random access memory (RAM), Read-Only Memory (ROM), Electrically-Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0036] The devices referred to in this application include but are not limited to user devices, network devices, or devices formed by integrating user devices and network devices through a network. The user devices include but are not limited to any mobile electronic products that can interact with users (for example, interact with users through a touchpad), such as smart phones, tablet computers, etc. The mobile electronic products can use any operating system, such as Android operating system, iOS operating system, etc. Among them, the network device includes an electronic device that can automatically perform numerical calculations and information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field Programmable Gate Array, FPGA), digital signal processors (Digital Signal Processor, DSP), embedded devices, etc. The network devices include but are not limited to computers, network hosts, single network servers, multiple network server sets or multiple servers. The cloud is composed of a large number of computers or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a type of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets. The network includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless self-organizing network (Ad Hoc network), etc. Preferably, the device may also be a program running on the user device, the network device, or a device formed by integrating the user device and the network device, the network device, the touch terminal, or the network device and the touch terminal through a network.
[0037] Of course, those skilled in the art should understand that the above-mentioned devices are only examples, and other existing or future devices that are applicable to the present application should also be included in the scope of protection of the present application and are included here by reference.
[0038] In the description of the present application, “plurality” means two or more, unless otherwise clearly and specifically defined.
[0039] Figure 1A flow chart of a method for generating a configuration file according to an embodiment of the present application is shown, and the method includes steps S11, S12, S13, and S14. In step S11, the user device obtains the target link address input by the user in response to the link address input operation performed by the user, and presents the target hypertext markup language HTML page corresponding to the target link address; in step S12, the user device obtains the target template page selected by the user in response to the selection operation performed by the user in one or more preset template pages, and presents the target template page, wherein the target template page includes one or more native controls; in step S13, the user device determines at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one of the at least one corresponding relationship is a corresponding relationship between a native control corresponding to one of the at least one first selection operations and an information flow corresponding to a second selection operation associated with the first selection operation; in step S14, the user device generates a configuration file corresponding to the target link address according to the at least one corresponding relationship.
[0040] In step S11, the user device obtains the target link address input by the user in response to the link address input operation performed by the user, and presents the target hypertext markup language HTML page corresponding to the target link address. In some embodiments, the link address input operation may be the user manually inputting the target link address in the configuration file editing application, or the user copying and pasting the target link address in the configuration file editing application, or the user clicking the target link address in other applications to jump to the configuration file editing application. Here, no restrictions are imposed on the link address input operation. In some embodiments, after obtaining the target link address input by the user, the target HTML (Hypertext Markup Language) page corresponding to the target link address is presented in the configuration file editing application.
[0041] In step S12, the user device obtains the target template page selected by the user in response to the selection operation performed by the user in one or more preset template pages, and presents the target template page, wherein the target template page includes one or more native controls. In some embodiments, the configuration file editing application includes one or more preset template pages, and the user needs to select one of the one or more template pages as the target template page, and present the target template page in the configuration file editing application. In some embodiments, the template identification information (for example, template name, template ID, template thumbnail, etc.) corresponding to each template page can be presented in the configuration file editing application, and the user needs to select a target template identification information from multiple template identification information, and determine the template page corresponding to the target template identification information as the target template page. In some embodiments, one template page can also be presented in the configuration file editing application at a time, and the user can switch the template page currently presented in the configuration file editing application by switching interactive methods such as sliding up and down, sliding left and right, and the user can perform a confirmation operation on the currently presented template page to determine the template page as the target template page. In some embodiments, the template page includes one or more native controls, each of which may not be bound to any information stream, or may be bound to a default information stream, which is only for user reference, and is used to prompt the user what type and length of information stream the native control is suitable for binding. In some embodiments, the target HTML page and the target template page may be presented separately in the configuration file editing application, when the target HTML page is in the foreground, the target template page is in the background, when the target template page is in the foreground, the target HTML page is in the background, and the user may freely switch between the target HTML page and the target template page. In some embodiments, preferably, the target HTML page and the target template page may be presented simultaneously in the configuration file editing application, for example, in a left-right split screen at the same time, or in an upper-lower split screen at the same time.
[0042] In step S13, the user device determines at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one of the at least one corresponding relationship is a corresponding relationship between a native control corresponding to a first selection operation in the at least one first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation. In some embodiments, it may be that whenever the user performs a first selection operation in the target template page, at least one native control is selected from one or more native controls of the target template page, and then the user performs a second selection operation in the target HTML page, and an information flow is selected from all information flows presented on the target HTML page, thereby determining the corresponding relationship between the at least one native control and the information flow. In some embodiments, it may also be that whenever the user performs a first selection operation in the target template page, a native control is selected from one or more native controls of the target template page, and then the user performs a second selection operation in the target HTML page, and at least one information flow is selected from all information flows presented on the target HTML page, thereby determining the corresponding relationship between the one or more native controls and the at least one information flow. In some embodiments, it is also possible that each time the user performs a second selection operation in the target HTML page, at least one information flow is selected from all information flows presented on the target HTML page, and then the user performs a first selection operation in the target template page again, and selects a native control from one or more native controls of the target template page, thereby determining the correspondence between the at least one information flow and the native control. In some embodiments, it is also possible that each time the user performs a second selection operation in the target HTML page, an information flow is selected from all information flows presented on the target HTML page, and then the user performs a first selection operation in the target template page again, and selects at least one native control from one or more native controls of the target template page, thereby determining the correspondence between the information flow and the at least one native control.
[0043] In step S14, the user device generates a configuration file corresponding to the target link address according to the at least one corresponding relationship. In some embodiments, the template information corresponding to the target template page is generated according to the page information of the target template page (for example, the page code of the target template page). In some embodiments, the template information includes native control description information corresponding to one or more native controls in the target template page, and the native control description information is used to describe the type and properties of the native control that needs to be rendered on the page. In some embodiments, the template information also includes page layout style information, and according to the page layout style information, one or more native controls in the template information can be created and natively rendered on the page. In some embodiments, the native control can be a view preset by the native system (for example, Android system, iOS system, etc.) (for example, Button, TextView, Recy clerView, etc.), or a viewgroup preset by the native system (viewgroup includes one or more views or viewgroups, for example, LinearLayout, RelativeLayout, etc.), or a custom view or custom viewgroup. In some embodiments, according to at least one correspondence between the determined native control and the information flow, and the page information of the target HTML page, the information flow parsing rule corresponding to each native control in the at least one native control corresponding to at least one first selection operation in the template information is determined, and the information flow parsing rule information is used to define how to obtain the information flow corresponding to each native control from the page information of the target HTML page, and the obtained information flow will be subsequently bound to the corresponding native control. For example, the information flow parsing rule information may be the label path corresponding to the information flow corresponding to each native control in the page information of the target HTML page, and the HTML element corresponding to the label path can be parsed from the page information of the target HTML page according to the label path information, and the information flow in the HTML element is used as the information flow corresponding to the native control. In some embodiments, according to at least one correspondence between the determined native control and the information flow, a configuration file corresponding to the link address is generated, and the configuration file includes the template information corresponding to the target template page and the information flow parsing rule corresponding to at least one native control in the one or more native controls in the template information.In some embodiments, after the user enters the target link address in the HTML browsing application, by obtaining the configuration file corresponding to the target link address (for example, the configuration file can be obtained from the server corresponding to the target link address, or the configuration file can also be obtained from the server of the HTML browsing application, or the configuration file can also be obtained from the local user device), according to the template information included in the configuration file, one or more native controls corresponding to the one or more native control description information in the template information are created, and then according to the information flow parsing rule information included in the configuration file, at least one information flow corresponding to at least one of the one or more native controls is obtained from the page information of the HTML page corresponding to the target link address, and each information flow in the at least one information flow obtained is bound to the corresponding native control, and according to the template information, one or more native controls included in the template information are rendered on the current page of the HTML browsing application, wherein the rendering method is based on the native rendering of the user device operating system, rather than based on the rendering of the browser kernel. It should be noted here that the Android system is used as an example in each embodiment of the present application, and those skilled in the art should understand that the solution of the present application can also be applied to other systems, such as the IOS system. The present application can facilitate the generation of configuration files, reduce the difficulty and cost of developing configuration files, and improve the development efficiency of configuration files, thereby enabling non-developers to quickly and easily generate configuration files through a series of visual operations in a configuration file editing application.
[0044] In some embodiments, the step S13 includes at least one of the following: whenever the user performs a first selection operation in the target template page, in response to a second selection operation associated with the first selection operation performed by the user in the target HTML page, determining the correspondence between the native control corresponding to the first selection operation and the information flow corresponding to the second selection operation; or, whenever the user performs a second selection operation in the target HTML page, in response to the first selection operation associated with the second selection operation performed by the user in the target template page, determining the correspondence between the native control corresponding to the first selection operation and the information flow corresponding to the second selection operation. In some embodiments, it may be that whenever the user performs a first selection operation in the target template page, at least one native control is selected from one or more native controls of the target template page, and then the user performs a second selection operation in the target HTML page again, selecting an information flow from all information flows presented on the target HTML page, thereby determining the correspondence between the at least one native control and the information flow. In some embodiments, it can also be that every time the user performs a first selection operation in the target template page, a native control is selected from one or more native controls of the target template page, and then the user performs a second selection operation in the target HTML page, and at least one information flow is selected from all information flows presented on the target HTML page, thereby determining the correspondence between the one or more native controls and the at least one information flow. In some embodiments, it can also be that every time the user performs a second selection operation in the target HTML page, at least one information flow is selected from all information flows presented on the target HTML page, and then the user performs a first selection operation in the target template page, and a native control is selected from one or more native controls of the target template page, thereby determining the correspondence between the at least one information flow and the native control. In some embodiments, it can also be that every time the user performs a second selection operation in the target HTML page, an information flow is selected from all information flows presented on the target HTML page, and then the user performs a first selection operation in the target template page, and at least one native control is selected from one or more native controls of the target template page, thereby determining the correspondence between the information flow and the at least one native control.
[0045] In some embodiments, step S13 further includes: the user device obtains the native control corresponding to the first selection operation for each first selection operation in the at least one first selection operation. In some embodiments, for each first selection operation performed by the user on one or more native controls in the target template page, the native control corresponding to the first selection operation is obtained, and the user can select only one native control at a time, or can select multiple native controls at a time.
[0046] In some embodiments, for each first selection operation, if the first selection operation is the first interactive operation performed by the user in the target template page, wherein the obtaining of the native control corresponding to the first selection operation includes step S15 (not shown). In step S15, the user device determines the native control corresponding to the first interactive operation in the target template page as the native control corresponding to the first selection operation. In some embodiments, the first selection operation may be just a first interactive operation once, or may include multiple first interactive operations. In some embodiments, the first interactive operation performed by the user in the target template page includes but is not limited to any form of interactive operation such as clicking, sliding, and long pressing. In some embodiments, if the operation object of the first interactive operation is a native control, the native control is determined as the native control corresponding to the first selection operation. For example, if the user clicks on native control A in the target template page, the native control A is used as the native control corresponding to the first selection operation. In some embodiments, after the user selects a native control in the target template page through the first interactive operation, a confirmation operation needs to be performed for the native control, and the native control is determined as the native control corresponding to the first selection operation after confirmation. For example, when the user clicks native control A in the target template page, a confirmation box will pop up to prompt the user whether to confirm to use native control A as the native control corresponding to the second first selection operation. The user can click the "Confirm" button or the "Cancel" button in the confirmation box.
[0047] In some embodiments, the step S15 includes: the user device determines the native control in the target template page for responding to the interactive event corresponding to the first interactive operation as the native control corresponding to the first selection operation. In some embodiments, there will also be a corresponding interactive event for the first interactive operation, for example, a click operation corresponds to an onClick click event. In some embodiments, for each first interactive operation, the interactive event corresponding to the interactive operation will be transmitted in one or more native controls in the page interaction area corresponding to the interactive operation in the target template page, and the interactive event will eventually be consumed by one of the native controls, that is, each interactive event will have a corresponding native control for responding to the interactive event, and the native control will be determined as the native control corresponding to the first selection operation.
[0048] In some embodiments, the step S15 includes step S151 (not shown) and step S152 (not shown). In step S151, the user device obtains the interaction position corresponding to the first interaction operation, and determines one or more native controls corresponding to the interaction position, wherein the interaction position is within the display area of the one or more native controls; in step S152, the user device determines at least one of the one or more native controls as the native control corresponding to the first selection operation. In some embodiments, the native control whose control display area corresponding to the first interaction operation is included in the target template page is used as one or more native controls corresponding to the interaction position, and at least one of the one or more native controls is determined as the native control corresponding to the first selection operation. Preferably, one of the one or more native controls is determined as the native control corresponding to the first selection operation. For example, if the first interaction operation is a click operation, the click position corresponding to the click operation is (X1, Y1), and the click position (X1, Y1) is within the control display area of the native control A, then the native control A is determined as the native control corresponding to the first selection operation.
[0049] In some embodiments, the interaction position corresponds to multiple native controls; the step S152 includes step S1521 (not shown). In step S1521, the user device determines the native control corresponding to the first selection operation from the multiple native controls based on the hierarchical information of the multiple native controls. In some embodiments, the hierarchical information may be display hierarchical information, and the native control at the topmost layer of the display hierarchy among the multiple native controls corresponding to the interaction position may be determined as the native control corresponding to the first selection operation. In some embodiments, the hierarchical information may also be nested hierarchical information, and the native control at the innermost layer of the nested hierarchy among the multiple native controls corresponding to the interaction position may be determined as the native control corresponding to the first selection operation.
[0050] In some embodiments, the step S1521 includes: the user device determines the native control whose nesting level is in the innermost layer among the multiple native controls as the native control corresponding to the first selection operation according to the hierarchical information of the multiple native controls. In some embodiments, for example, the first interactive operation is a click operation, and the click position corresponding to the click operation is (X1, Y1), and the click position (X1, Y1) is within the control display area of native control A and native control B. Since native control B is a child control of native control A, the nesting level of native control B is in the innermost layer, and the nesting level of native control A is in the outer layer of native control B, the native control B whose nesting level is in the innermost layer is used as the native control corresponding to the first selection operation.
[0051] In some embodiments, step S1521 includes: the user device determines the native control whose display level is at the top layer among the multiple native controls as the native control corresponding to the first selection operation according to the hierarchical information of the multiple native controls. For example, the first interactive operation is a click operation, and the click position corresponding to the click operation is (X1, Y1). Native controls A and native controls B are displayed overlappingly at the click position (X1, Y1). The display level of native control A is at the top layer, and the display level of native control B is at the lower layer of native control A. Then, the native control A whose display level is at the top layer is determined as the native control corresponding to the first selection operation.
[0052] In some embodiments, the step S13 further includes: the user device obtains, for each second selection operation in the at least one second selection operation, an information stream corresponding to the second selection operation. In some embodiments, for each second selection operation performed by the user on all information streams presented on the target HTML page, the information stream corresponding to the second selection operation is obtained, and the user can select only one information stream at a time, or can select multiple information streams at a time.
[0053] In some embodiments, for each second selection operation, if the second selection operation is the second interactive operation performed by the user in the target HTML page; wherein, the obtaining of the information flow corresponding to the second selection operation includes step S16 (not shown) and step S17 (not shown). In step S16, the user device determines the HTML element corresponding to the second interactive operation in the target HTML page; in step S17, the user device determines the information flow in the HTML element as the information flow corresponding to the second selection operation. In some embodiments, the second selection operation may be just a one-time second interactive operation, or may include multiple second interactive operations. In some embodiments, the second interactive operation performed by the user in the target HTML page includes but is not limited to any form of interactive operation such as clicking, sliding, and long pressing. In some embodiments, if the operation object of the second interactive operation is a certain HTML element, the information flow in the HTML element is determined as the information flow corresponding to this second selection operation. For example, the user clicks the HTML element in the target template page. <h1> This is my first paragraph< / h1> , then the information flow "This is my first paragraph" in the HTML element is determined as the information flow corresponding to the second selection operation. In some embodiments, after the user selects an HTML element in the target template page through the second interactive operation, a confirmation operation needs to be performed on the HTML element. Only after confirmation can the information flow in the HTML element be determined as the information flow corresponding to the second selection operation.
[0054] In some embodiments, the step S16 includes at least one of the following: the user device determines the HTML element in the target HTML page used to respond to the interactive event corresponding to the second interactive operation as the HTML element corresponding to the second interactive operation; or, obtains the interactive position corresponding to the second interactive operation, and determines the HTML element corresponding to the interactive position in the target HTML page as the HTML element corresponding to the second interactive operation, wherein the interactive position is within the display area of the HTML element. In some embodiments, there will also be a corresponding interactive event for the second interactive operation, for example, a click operation corresponds to an onclick click event. In some embodiments, for each second interactive operation, the interactive event corresponding to the interactive operation will be transmitted in one or more HTML elements in the page interactive area corresponding to the interactive operation in the target HTML page, and the interactive event will eventually be consumed by one of the HTML elements, that is, each interactive event will have a corresponding HTML element for responding to the interactive event, and the HTML element is determined as the HTML element corresponding to the second interactive operation. In some embodiments, the native control of the interactive position corresponding to the second interactive operation in the corresponding display area of the target HTML page is used as one or more HTML elements corresponding to the interactive position, and at least one HTML element among the one or more HTML elements is determined as the HTML element corresponding to the second interactive operation. Preferably, one of the one or more HTML elements is determined as the HTML element corresponding to the second interactive operation. For example, the second interactive operation is a click operation, and the click position corresponding to the click operation is (X1, Y1). The click position (X1, Y1) is in the HTML element This is another paragraph , the HTML element is determined as the HTML element corresponding to the second selection operation.
[0055] In some embodiments, the step S17 includes: the user device displays the display area of the HTML element in the target HTML page by a special presentation method, and in response to the confirmation operation performed by the user on the display area, the information flow in the HTML element is determined as the information flow corresponding to the second selection operation. In some embodiments, after the user selects the corresponding HTML element in the target HTML page through the second interactive operation, the display area of the HTML element or the boundary of the display area will be displayed on the target HTML page by a special presentation method such as highlighting, and then the user needs to perform a confirmation operation on the display area. Only after the user confirms, the information flow in the HTML element will be determined as the information flow corresponding to the second selection operation.
[0056] In some embodiments, for each second selection operation, if the second operation is a content selection operation performed by the user in the target HTML page; wherein, the obtaining of the information flow corresponding to the second selection operation includes step S18 (not shown). In step S18, the user device determines the selected content corresponding to the content selection operation as the information flow corresponding to the second selection operation. In some embodiments, the content selection operation performed by the user in the target HTML page includes but is not limited to any form of interactive operation such as clicking, sliding, and long pressing. In some embodiments, the user can directly select page content on the target HTML page through the content selection operation, and determine the selected page content as the information flow corresponding to the second selection operation, wherein the page content includes but is not limited to text content, picture content, audio and video content, etc. For example, the user selects the text content "Title abc" on the target HTML page through a sliding operation, and uses the text content "Title abc" as the information flow corresponding to this second selection operation. In some embodiments, the user can also select a page area on the target HTML page through the content selection operation, and determine the page content located in the page area as the information flow corresponding to the second selection operation. For example, the user selects a rectangular page area Area1 on the target HTML page through a sliding operation, and uses the text content "Introduction xyz" in the rectangular page area Area1 as the information flow corresponding to the second selection operation.
[0057] In some embodiments, the content selection operation is a third interactive operation performed on the target text content; wherein, the step S18 includes: the user device displays the complete text content corresponding to the target text content in the target HTML page through a special presentation method, and in response to the confirmation operation performed by the user on the complete text content, the complete text content is determined as the information flow corresponding to the second selection operation. In some embodiments, the content selection operation is a third interactive operation performed on the target text content. After the user selects the corresponding target text content in the target HTML page through the third interactive operation, the complete text content corresponding to the target text content will be displayed on the target HTML page through a special presentation method such as highlighting, wherein the complete text content can be the phrase, sentence or paragraph where the target text content is located. In some embodiments, the user needs to perform a confirmation operation on the complete text content, and the complete text content will be determined as the information flow corresponding to the second selection operation only after the user confirms. For example, if the user clicks on the target text content "Fire" on the target HTML page, the complete text content corresponding to the target text content may be the phrase "Rockets" in which it is located, or it may be the sentence "The Rockets eliminated the Thunder", or it may be the paragraph "In this morning's NBA playoffs... the Rockets eliminated the Thunder...", and the complete text content is highlighted on the target HTML page.
[0058] In some embodiments, the step S14 includes: the user device generates template information corresponding to the target template page according to the page information of the target template page, wherein the template information includes description information corresponding to the one or more native controls; according to the determined at least one corresponding relationship and the page information of the target HTML page, determines the information flow parsing rule information corresponding to each native control in the at least one native control corresponding to the at least one first selection operation in the template information, wherein the information flow parsing rule information is used to obtain the information flow corresponding to each native control in the at least one native control from the page information of the target HTML page; generates a configuration file corresponding to the target link address, wherein the configuration file includes the template information and the information flow parsing rule information. In some embodiments, the template information corresponding to the target template page is generated according to the page information of the target template page (for example, the page code of the target template page). In some embodiments, the template information includes native control description information corresponding to one or more native controls in the target template page, and the native control description information is used to describe the type and properties of the native control that needs to be rendered on the page. In some embodiments, the template information also includes page layout style information, and according to the page layout style information, one or more native controls in the template information can be created and natively rendered on the page. In some embodiments, the native control may be a view (e.g., Button, TextView, RecyclerView, etc.) preset by the native system (e.g., Android system, iOS system, etc.), or a viewgroup preset by the native system (the viewgroup includes one or more views or viewgroups, e.g., LinearLayout, RelativeLayout, etc.), or a custom view or custom viewgroup. In some embodiments, according to at least one correspondence between the determined native control and the information flow, and the page information of the target HTML page, the information flow parsing rule corresponding to each native control in the at least one native control corresponding to at least one first selection operation in the template information is determined, and the information flow parsing rule information is used to define how to obtain the information flow corresponding to each native control from the page information of the target HTML page, and the obtained information flow will be subsequently bound to the corresponding native control. For example, the information flow parsing rule information may be the label path corresponding to the information flow corresponding to each native control in the page information of the target HTML page, and the HTML element corresponding to the label path can be parsed from the page information of the target HTML page according to the label path information, and the information flow in the HTML element is used as the information flow corresponding to the native control.In some embodiments, according to at least one correspondence between the determined native control and the information flow, a configuration file corresponding to the link address is generated, and the configuration file includes template information corresponding to the target template page and information flow parsing rules corresponding to at least one native control among the one or more native controls in the template information. In some embodiments, the template information in the configuration file may also be template identification information (e.g., template name, template ID, etc.), and according to the template identification information, specific template information may be obtained from a local user device corresponding to the HTML browsing application, a server corresponding to the HTML browsing application, or a server corresponding to the target link address.
[0059] In some embodiments, the page information of the target HTML page includes at least one first link address, wherein the configuration file also includes first template information and first information flow parsing rule information corresponding to each first link address. In some embodiments, the page information of the target HTML page includes one or more first link addresses. For each first link address, clicking the first link address in the target HTML information will jump to the first HTML page corresponding to the first link address. The first HTML page includes one or more first information flows. Then the user needs to re-execute the above steps S12, S13 and S14 for the first HTML page, and reselect a first template page corresponding to the first link address from one or more preset template pages. The first template page may be the same as or different from the template pages corresponding to other link addresses. The first template page includes one or more first native controls. Then, based on at least one first selection operation performed by the user in the first template page and at least one second selection operation performed by the user in the first HTML page, the first information flow corresponding to each first selection operation is determined. The correspondence between the native control and the first information flow corresponding to the second selection operation associated with the first selection operation, and then generate the first template information corresponding to the first link address according to the page information of the first template page. If the first template page is the same as the template page corresponding to the other link addresses, the first template information is the same as the template information corresponding to the other link addresses, that is, the target link address and the first link address correspond to the same target template information, and then according to at least one correspondence between the determined first native control and the first information flow, and the page information of the first HTML page, determine the information flow parsing rule corresponding to each first native control in the at least one first native control corresponding to at least one first selection operation in the first template information, and use the information flow parsing rule as the information flow parsing rule corresponding to the first link address. The information flow parsing rules corresponding to the first link address and the other link addresses can be the same or different. In some embodiments, in addition to the template information corresponding to the target template page and the information flow parsing rule information corresponding to the template information, the configuration file corresponding to the target link address also includes the first template information and the first information flow parsing rule information corresponding to each of the one or more first link addresses contained in the page information of the target HTML page corresponding to the target link address. In some embodiments, for one or more second link addresses contained in the page information of the first HTML page corresponding to each first link address, the above steps are repeated, and so on. The configuration file corresponding to the target link address may include template information and information flow parsing rule information corresponding to each of the several link addresses.
[0060] In some embodiments, the configuration file includes a plurality of rule information, the plurality of rule information includes the first rule information corresponding to the target link address and the second rule information corresponding to each first link address, wherein the first rule information includes the template information and the information flow parsing rule information, and the second rule information corresponding to each first link address includes the first template information and the first information flow parsing rule information corresponding to the first link address. In some embodiments, for each link address including the target link address and one or more first link addresses, the template information and the information flow parsing rule information corresponding to each link address are encapsulated in the rule information corresponding to the link address. In some embodiments, the configuration file corresponding to the target link address includes a plurality of rule information, the rule information includes the first rule information corresponding to the target link address and the second rule information corresponding to each first link address. In some embodiments, each link address may correspond to a different rule information, or multiple different link addresses may correspond to the same rule information. In some embodiments, for one or more second link addresses contained in the page information of the first HTML page corresponding to each first link address, the above steps are repeated, and so on, the configuration file corresponding to the target link address includes a plurality of rule information corresponding to a plurality of link addresses, and the rule information corresponding to each link address includes the template information and the information flow parsing rule information corresponding to the link address. In some embodiments, the configuration file corresponding to the target link address includes a mapping relationship between at least one link-related information and at least one rule information, and a link address is matched with the at least one link-related information to obtain link-related information matching the link address, and according to the mapping relationship, the rule information corresponding to the link-related information is used as the rule information corresponding to the link address. In some embodiments, the link-related information can be the link address itself or a regular expression of the link address.
[0061] Figure 2A user device structure diagram for generating a configuration file according to an embodiment of the present application is shown, and the method includes a first module 11, a second module 12, a third module 13 and a fourth module 14. The first module 11 is used to obtain the target link address input by the user in response to the link address input operation performed by the user, and present the target hypertext markup language HTML page corresponding to the target link address; the first module 12 is used to obtain the target template page selected by the user in response to the selection operation performed by the user in one or more preset template pages, and present the target template page, wherein the target template page includes one or more native controls; the third module 13 is used to determine at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one of the at least one corresponding relationship is a corresponding relationship between a native control corresponding to one of the at least one first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation; the fourth module 14 is used to generate a configuration file corresponding to the target link address according to the at least one corresponding relationship.
[0062] A module 11 is used to obtain a target link address input by the user in response to a link address input operation performed by the user, and present a target hypertext markup language HTML page corresponding to the target link address. In some embodiments, the link address input operation may be a user manually inputting the target link address in the configuration file editing application, or a user copying and pasting the target link address in the configuration file editing application, or a user clicking the target link address in other applications to jump to the configuration file editing application. Here, no restrictions are imposed on the link address input operation. In some embodiments, after obtaining the target link address input by the user, a target HTML (hypertext markup language) page corresponding to the target link address is presented in the configuration file editing application.
[0063] The first and second modules 12 are used to obtain the target template page selected by the user in response to the selection operation performed by the user in one or more preset template pages, and present the target template page, wherein the target template page includes one or more native controls. In some embodiments, the configuration file editing application includes one or more preset template pages, and the user needs to select one of the one or more template pages as the target template page, and present the target template page in the configuration file editing application. In some embodiments, the template identification information (for example, template name, template ID, template thumbnail, etc.) corresponding to each template page can be presented in the configuration file editing application, and the user needs to select a target template identification information from multiple template identification information, and determine the template page corresponding to the target template identification information as the target template page. In some embodiments, one template page can also be presented in the configuration file editing application at a time, and the user can switch the template page currently presented in the configuration file editing application by switching interactive methods such as sliding up and down, sliding left and right, and the user can perform a confirmation operation on the currently presented template page to determine the template page as the target template page. In some embodiments, the template page includes one or more native controls, each of which may not be bound to any information stream, or may be bound to a default information stream, which is only for user reference, and is used to prompt the user what type and length of information stream the native control is suitable for binding. In some embodiments, the target HTML page and the target template page may be presented separately in the configuration file editing application, when the target HTML page is in the foreground, the target template page is in the background, when the target template page is in the foreground, the target HTML page is in the background, and the user may freely switch between the target HTML page and the target template page. In some embodiments, preferably, the target HTML page and the target template page may be presented simultaneously in the configuration file editing application, for example, in a left-right split screen at the same time, or in an upper-lower split screen at the same time.
[0064] A module 13 is used to determine at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one of the at least one corresponding relationship is a corresponding relationship between a native control corresponding to a first selection operation in the at least one first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation. In some embodiments, it can be that whenever the user performs a first selection operation in the target template page, at least one native control is selected from one or more native controls of the target template page, and then the user performs a second selection operation in the target HTML page, and selects an information flow from all information flows presented on the target HTML page, thereby determining the corresponding relationship between the at least one native control and the information flow. In some embodiments, it can also be that whenever the user performs a first selection operation in the target template page, a native control is selected from one or more native controls of the target template page, and then the user performs a second selection operation in the target HTML page, and selects at least one information flow from all information flows presented on the target HTML page, thereby determining the corresponding relationship between the one or more native controls and the at least one information flow. In some embodiments, it is also possible that each time the user performs a second selection operation in the target HTML page, at least one information flow is selected from all information flows presented on the target HTML page, and then the user performs a first selection operation in the target template page again, and selects a native control from one or more native controls of the target template page, thereby determining the correspondence between the at least one information flow and the native control. In some embodiments, it is also possible that each time the user performs a second selection operation in the target HTML page, an information flow is selected from all information flows presented on the target HTML page, and then the user performs a first selection operation in the target template page again, and selects at least one native control from one or more native controls of the target template page, thereby determining the correspondence between the information flow and the at least one native control.
[0065] A module 14 is used to generate a configuration file corresponding to the target link address according to the at least one corresponding relationship. In some embodiments, the template information corresponding to the target template page is generated according to the page information of the target template page (for example, the page code of the target template page). In some embodiments, the template information includes native control description information corresponding to one or more native controls in the target template page, and the native control description information is used to describe the type and properties of the native control that needs to be rendered on the page. In some embodiments, the template information also includes page layout style information, and according to the page layout style information, one or more native controls in the template information can be created and natively rendered on the page. In some embodiments, the native control can be a view preset by the native system (for example, Android system, iOS system, etc.) (for example, Button, TextView, RecyclerView, etc.), or a viewgroup preset by the native system (viewgroup includes one or more views or viewgroups, for example, LinearLayout, RelativeLayout, etc.), or a custom view or custom viewgroup. In some embodiments, according to at least one correspondence between the determined native control and the information flow, and the page information of the target HTML page, the information flow parsing rule corresponding to each native control in the at least one native control corresponding to at least one first selection operation in the template information is determined, and the information flow parsing rule information is used to define how to obtain the information flow corresponding to each native control from the page information of the target HTML page, and the obtained information flow will be subsequently bound to the corresponding native control. For example, the information flow parsing rule information may be the label path corresponding to the information flow corresponding to each native control in the page information of the target HTML page, and the HTML element corresponding to the label path can be parsed from the page information of the target HTML page according to the label path information, and the information flow in the HTML element is used as the information flow corresponding to the native control. In some embodiments, according to at least one correspondence between the determined native control and the information flow, a configuration file corresponding to the link address is generated, and the configuration file includes the template information corresponding to the target template page and the information flow parsing rule corresponding to at least one native control in the one or more native controls in the template information.In some embodiments, after the user enters the target link address in the HTML browsing application, by obtaining the configuration file corresponding to the target link address (for example, the configuration file can be obtained from the server corresponding to the target link address, or the configuration file can also be obtained from the server of the HTML browsing application, or the configuration file can also be obtained from the local user device), according to the template information included in the configuration file, one or more native controls corresponding to the one or more native control description information in the template information are created, and then according to the information flow parsing rule information included in the configuration file, at least one information flow corresponding to at least one of the one or more native controls is obtained from the page information of the HTML page corresponding to the target link address, and each information flow in the at least one information flow obtained is bound to the corresponding native control, and according to the template information, the one or more native controls included in the template information are rendered on the current page of the HTML browsing application, wherein the rendering method is based on the native rendering of the user device operating system, rather than the rendering based on the browser kernel. It should be noted here that the Android system is used as an example in each embodiment of the present application, and those skilled in the art should understand that the scheme of the present application can also be applied to other systems, such as the IOS system. The present application can facilitate the generation of configuration files, reduce the difficulty and cost of developing configuration files, and improve the development efficiency of configuration files, thereby enabling non-developers to quickly and easily generate configuration files through a series of visual operations in a configuration file editing application.
[0066] In some embodiments, the one-three module 13 is used to: whenever the user performs a first selection operation in the target template page, in response to the second selection operation associated with the first selection operation performed by the user in the target HTML page, determine the correspondence between the native control corresponding to the first selection operation and the information flow corresponding to the second selection operation; or, whenever the user performs a second selection operation in the target HTML page, in response to the first selection operation associated with the second selection operation performed by the user in the target template page, determine the correspondence between the native control corresponding to the first selection operation and the information flow corresponding to the second selection operation. Here, the relevant operations are Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0067] In some embodiments, the one-three module 13 is used to: for each first selection operation in the at least one first selection operation, obtain the native control corresponding to the first selection operation. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0068] In some embodiments, for each first selection operation, if the first selection operation is the first interactive operation performed by the user in the target template page, wherein the acquisition of the native control corresponding to the first selection operation includes a one-five module 15 (not shown). The one-five module 15 is used to determine the native control corresponding to the first interactive operation in the target template page as the native control corresponding to the first selection operation. Here, the specific implementation method of the one-five module 15 is the same as Figure 1 The embodiments of step S15 are the same or similar, so they are not described again and are included here by reference.
[0069] In some embodiments, the one-five module 15 is used to: determine the native control in the target template page that is used to respond to the interaction event corresponding to the first interaction operation as the native control corresponding to the first selection operation. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0070] In some embodiments, the one-five module 15 includes a one-five-one module 151 (not shown) and a one-five-two module 152 (not shown). The one-five-one module 151 is used to obtain the interaction position corresponding to the first interaction operation and determine one or more native controls corresponding to the interaction position, wherein the interaction position is within the display area of the one or more native controls; the one-five-two module 152 is used to determine at least one control of the one or more native controls as the native control corresponding to the first selection operation. Here, the specific implementation of the one-five-one module 151 and the one-five-two module 152 is the same as Figure 1 The embodiments of steps S151 and S152 are the same or similar, so they are not repeated here and are included here by reference.
[0071] In some embodiments, the interaction position corresponds to multiple native controls; the 152 module 152 includes a 1521 module 1521 (not shown). The 1521 module 1521 is used to determine the native control corresponding to the first selection operation from the multiple native controls according to the hierarchical information of the multiple native controls. Here, the specific implementation method of the 1521 module 1521 is the same as Figure 1 The embodiments of step S1521 are the same or similar, so they are not repeated here and are included here by reference.
[0072] In some embodiments, the 1521 module 1521 is used to: determine, according to the hierarchical information of the multiple native controls, the native control at the innermost nesting level among the multiple native controls as the native control corresponding to the first selection operation. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0073] In some embodiments, the 1521 module 1521 is used to: determine the native control at the top of the display hierarchy among the multiple native controls as the native control corresponding to the first selection operation according to the hierarchical information of the multiple native controls. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0074] In some embodiments, the one-three module 13 is further used to: for each second selection operation in the at least one second selection operation, obtain the information flow corresponding to the second selection operation. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0075] In some embodiments, for each second selection operation, if the second selection operation is a second interactive operation performed by the user in the target HTML page; wherein, the acquisition of the information flow corresponding to the second selection operation includes a six-module 16 (not shown) and a seven-module 17 (not shown). The six-module 16 is used to determine the HTML element corresponding to the second interactive operation in the target HTML page; the seven-module 17 is used to determine the information flow in the HTML element as the information flow corresponding to the second selection operation. Here, the specific implementation of the six-module 16 and the seven-module 17 is the same as Figure 1 The embodiments of steps S16 and S17 are the same or similar, so they are not repeated here and are included here by reference.
[0076] In some embodiments, the one-six module 16 is used to: determine the HTML element in the target HTML page that is used to respond to the interactive event corresponding to the second interactive operation as the HTML element corresponding to the second interactive operation; or obtain the interactive position corresponding to the second interactive operation, and determine the HTML element corresponding to the interactive position in the target HTML page as the HTML element corresponding to the second interactive operation, wherein the interactive position is within the display area of the HTML element. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0077] In some embodiments, the module 17 is used to: display the display area of the HTML element in the target HTML page in a special presentation manner, and in response to the user's confirmation operation on the display area, determine the information flow in the HTML element as the information flow corresponding to the second selection operation. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0078] In some embodiments, for each second selection operation, if the second operation is a content selection operation performed by the user in the target HTML page; wherein, the information flow corresponding to the second selection operation is obtained, including an eight-module 18 (not shown). The eight-module 18 is used to determine the selected content corresponding to the content selection operation as the information flow corresponding to the second selection operation. Here, the specific implementation method of the eight-module 18 is the same as Figure 1 The embodiments of step S18 are the same or similar, so they are not described again and are included here by reference.
[0079] In some embodiments, the content selection operation is a third interactive operation performed on the target text content; wherein the module 18 is used to: display the complete text content corresponding to the target text content in the target HTML page through a special presentation method, and in response to the user's confirmation operation performed on the complete text content, determine the complete text content as the information flow corresponding to the second selection operation. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0080] In some embodiments, the one-fourth module 14 is used to: generate template information corresponding to the target template page according to the page information of the target template page, wherein the template information includes description information corresponding to the one or more native controls; determine information flow parsing rule information corresponding to each native control in at least one native control corresponding to the at least one first selection operation in the template information according to the determined at least one corresponding relationship and the page information of the target HTML page, wherein the information flow parsing rule information is used to obtain the information flow corresponding to each native control in the at least one native control from the page information of the target HTML page; generate a configuration file corresponding to the target link address, wherein the configuration file includes the template information and the information flow parsing rule information. Here, the related operations are as follows Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0081] In some embodiments, the page information of the target HTML page includes at least one first link address, wherein the configuration file also includes first template information and first information flow parsing rule information corresponding to each first link address. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0082] In some embodiments, the configuration file includes multiple rule information, the multiple rule information includes first rule information corresponding to the target link address and second rule information corresponding to each first link address, wherein the first rule information includes the template information and the information flow parsing rule information, and the second rule information corresponding to each first link address includes the first template information and the first information flow parsing rule information corresponding to the first link address. Figure 1 The embodiments shown are the same or similar, so they are not described again and are incorporated herein by reference.
[0083] Figure 3 An exemplary system is shown that can be used to implement the various embodiments described in this application.
[0084] like Figure 3 In some embodiments shown, the system 300 can be used as any of the devices in the various described embodiments. In some embodiments, the system 300 may include one or more computer-readable media (e.g., system memory or NVM / storage device 320) with instructions and one or more processors (e.g., (one or more) processors 305) coupled to the one or more computer-readable media and configured to execute instructions to implement modules to perform the actions described in this application.
[0085] For one embodiment, system control module 310 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 305 and / or any suitable device or component in communication with system control module 310 .
[0086] The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. The memory controller module 330 may be a hardware module, a software module, and / or a firmware module.
[0087] The system memory 315 may be used, for example, to load and store data and / or instructions for the system 300. For one embodiment, the system memory 315 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the system memory 315 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0088] For one embodiment, system control module 310 may include one or more input / output (I / O) controllers to provide interfaces to NVM / storage device 320 and communication interface(s) 325 .
[0089] For example, NVM / storage device 320 may be used to store data and / or instructions. NVM / storage device 320 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0090] NVM / storage device 320 may include storage resources that are physically part of the device on which system 300 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 320 may be accessed over a network via communication interface(s) 325.
[0091] Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and / or with any other suitable devices. System 300 may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and / or protocols.
[0092] For one embodiment, at least one of the processor(s) 305 may be packaged together with the logic of one or more controllers of the system control module 310 (e.g., the memory controller module 330). For one embodiment, at least one of the processor(s) 305 may be packaged together with the logic of one or more controllers of the system control module 310 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with the logic of one or more controllers of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with the logic of one or more controllers of the system control module 310 to form a system on chip (SoC).
[0093] In various embodiments, the system 300 may be, but is not limited to: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the system 300 may have more or fewer components and / or a different architecture. For example, in some embodiments, the system 300 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.
[0094] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer code. When the computer code is executed, the method described in any of the preceding items is executed.
[0095] The present application also provides a computer program product. When the computer program product is executed by a computer device, the method described in any of the preceding items is executed.
[0096] The present application also provides a computer device, the computer device comprising:
[0097] one or more processors;
[0098] a memory for storing one or more computer programs;
[0099] When the one or more computer programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any of the preceding items.
[0100] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0101] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0102] Communication media include media by which communication signals containing, for example, computer readable instructions, data structures, program modules, or other data are transmitted from one system to another. Communication media may include guided transmission media such as cables and wires (e.g., fiber optic, coaxial, etc.) and wireless (unguided transmission) media that can propagate energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied as a modulated data signal in, for example, a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" refers to a signal whose one or more characteristics are changed or set in such a manner as to encode information in the signal. Modulation may be analog, digital, or a hybrid modulation technique.
[0103] By way of example and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic / ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, magnetic tapes, CDs, DVDs); or other media now known or later developed that can store computer-readable information / data for use by a computer system.
[0104] Here, according to one embodiment of the present application, a device is included, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the device is triggered to run the methods and / or technical solutions based on the aforementioned multiple embodiments of the present application.
[0105] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A method for generating a configuration file, wherein: The method comprises: In response to a link address input operation performed by a user, acquiring a target link address input by the user, and presenting a target hypertext markup language HTML page corresponding to the target link address; In response to a selection operation performed by the user in one or more preset template pages, obtaining a target template page selected by the user, and presenting the target template page, wherein the target template page includes one or more native controls; Determine at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page, wherein one corresponding relationship among the at least one corresponding relationship is a corresponding relationship between a native control corresponding to a first selection operation in the at least one first selection operation and an information flow corresponding to a second selection operation associated with the first selection operation; A configuration file corresponding to the target link address is generated according to the at least one corresponding relationship.
2. The method according to claim 1, wherein: The determining at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page comprises at least one of the following: Whenever the user performs a first selection operation in the target template page, in response to a second selection operation associated with the first selection operation performed by the user in the target HTML page, determining a correspondence between a native control corresponding to the first selection operation and an information flow corresponding to the second selection operation; or, Whenever the user performs a second selection operation in the target HTML page, in response to the user performing a first selection operation associated with the second selection operation in the target template page, the correspondence between the native control corresponding to the first selection operation and the information flow corresponding to the second selection operation is determined.
3. The method according to claim 1 or 2, wherein: The determining at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page further includes: For each first selection operation in the at least one first selection operation, a native control corresponding to the first selection operation is obtained.
4. The method according to claim 3, wherein: For each first selection operation, if the first selection operation is the first interaction operation performed by the user in the target template page, The obtaining of the native control corresponding to the first selection operation includes: The native control corresponding to the first interaction operation in the target template page is determined as the native control corresponding to the first selection operation.
5. The method according to claim 4, wherein: The determining the native control corresponding to the first interaction operation in the target template page as the native control corresponding to the first selection operation includes: A native control in the target template page that is used to respond to the interaction event corresponding to the first interaction operation is determined as the native control corresponding to the first selection operation.
6. The method according to claim 4, wherein: The determining the native control corresponding to the first interaction operation in the target template page as the native control corresponding to the first selection operation includes: Acquire an interaction position corresponding to the first interaction operation, and determine one or more native controls corresponding to the interaction position, wherein the interaction position is within a display area of the one or more native controls; At least one of the one or more native controls is determined as the native control corresponding to the first selection operation.
7. The method according to claim 6, wherein: This interaction position corresponds to multiple native controls; The step of determining at least one of the one or more native controls as the native control corresponding to the first selection operation includes: According to the hierarchical information of the multiple native controls, a native control corresponding to the first selection operation is determined from the multiple native controls.
8. The method according to claim 7, wherein: The determining, according to the hierarchical information of the multiple native controls, a native control corresponding to the first selection operation from the multiple native controls includes: According to the hierarchical information of the multiple native controls, a native control whose nesting level is located at the innermost layer among the multiple native controls is determined as the native control corresponding to the first selection operation.
9. The method according to claim 7, wherein: The determining, according to the hierarchical information of the multiple native controls, a native control corresponding to the first selection operation from the multiple native controls includes: According to the hierarchical information of the multiple native controls, a native control at the topmost display level among the multiple native controls is determined as the native control corresponding to the first selection operation.
10. The method according to claim 1 or 2, wherein: The determining at least one corresponding relationship according to at least one first selection operation performed by the user in the target template page and at least one second selection operation performed by the user in the target HTML page further includes: For each second selection operation in the at least one second selection operation, an information flow corresponding to the second selection operation is obtained.
11. The method according to claim 10, wherein: For each second selection operation, if the second selection operation is a second interactive operation performed by the user in the target HTML page; The obtaining of the information flow corresponding to the second selection operation includes: Determine an HTML element corresponding to the second interaction operation in the target HTML page; The information flow in the HTML element is determined as the information flow corresponding to the second selection operation.
12. The method according to claim 11, wherein: The determining of the HTML element corresponding to the second interaction operation in the target HTML page includes at least one of the following: Determine an HTML element in the target HTML page that is used to respond to the interaction event corresponding to the second interaction operation as the HTML element corresponding to the second interaction operation; or, An interaction position corresponding to the second interaction operation is obtained, and an HTML element corresponding to the interaction position in the target HTML page is determined as the HTML element corresponding to the second interaction operation, wherein the interaction position is within a display area of the HTML element.
13. The method according to claim 11, wherein: The step of determining the information flow in the HTML element as the information flow corresponding to the second selection operation includes: The display area of the HTML element is displayed in the target HTML page in a special presentation manner, and in response to a confirmation operation performed by the user on the display area, the information flow in the HTML element is determined as the information flow corresponding to the second selection operation.
14. The method according to claim 10, wherein: For each second selection operation, if the second selection operation is a content selection operation performed by the user in the target HTML page; The obtaining of the information flow corresponding to the second selection operation includes: The selected content corresponding to the content selection operation is determined as the information flow corresponding to the second selection operation.
15. The method according to claim 14, wherein: The content selection operation is a third interactive operation performed on the target text content; The step of determining the selected content corresponding to the content selection operation as the information flow corresponding to the second selection operation includes: The complete text content corresponding to the target text content is displayed in the target HTML page in a special presentation manner, and in response to a confirmation operation performed by the user on the complete text content, the complete text content is determined as the information flow corresponding to the second selection operation.
16. The method according to claim 1 or 2, wherein: Generating a configuration file corresponding to the target link address according to the at least one corresponding relationship includes: Generate template information corresponding to the target template page according to the page information of the target template page, wherein the template information includes description information corresponding to the one or more native controls; According to the determined at least one corresponding relationship and the page information of the target HTML page, determine the information flow parsing rule information corresponding to each native control in the at least one native control corresponding to the at least one first selection operation in the template information, wherein the information flow parsing rule information is used to define how to obtain the information flow corresponding to each native control in the at least one native control from the page information of the target HTML page; A configuration file corresponding to the target link address is generated, wherein the configuration file includes the template information and the information flow parsing rule information.
17. The method according to claim 16, wherein: The page information of the target HTML page includes at least one first link address, wherein the configuration file includes the template information, the information flow parsing rule information, the first template information corresponding to each first link address, and the first information flow parsing rule information.
18. The method according to claim 17, wherein: The configuration file includes multiple rule information, and the multiple rule information includes first rule information corresponding to the target link address and second rule information corresponding to each first link address, wherein the first rule information includes the template information and the information flow parsing rule information, and the second rule information corresponding to each first link address includes the first template information and the first information flow parsing rule information corresponding to the first link address.
19. A device for generating a configuration file, wherein: The device comprises: Processor; and A memory arranged to store computer executable instructions which, when executed, cause the processor to perform a method as claimed in any one of claims 1 to 18.
20. A computer readable medium storing instructions which, when executed, cause a system to perform the operations of the method of any one of claims 1 to 18.
Citation Information
Patent Citations
Method and device for visualized rendering of page
CN107391114A
Page loading method, page operation instruction processing method and client
CN108021583A